summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2012-02-23 11:41:11 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2012-02-23 19:17:25 +0100
commit101bd184d1a007b36e4fb889434e3013bdd3d1ea (patch)
treeb1631f03a10faf881419237df48967360c3bbf12
parentf25d1f5006c627892b97c72b77cd3e1398cde7a7 (diff)
downloadsamba-101bd184d1a007b36e4fb889434e3013bdd3d1ea.tar.gz
samba-101bd184d1a007b36e4fb889434e3013bdd3d1ea.tar.bz2
samba-101bd184d1a007b36e4fb889434e3013bdd3d1ea.zip
s3:smbd/utmp.c - fix the build on FreeBSD 9 without utmp.h
https://bugzilla.samba.org/show_bug.cgi?id=8709 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Feb 23 19:17:25 CET 2012 on sn-devel-104
-rw-r--r--source3/smbd/utmp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c
index 47462f6d85..6837c078cf 100644
--- a/source3/smbd/utmp.c
+++ b/source3/smbd/utmp.c
@@ -126,7 +126,9 @@ void sys_utmp_yield(const char *username, const char *hostname,
#else /* WITH_UTMP */
+#ifdef HAVE_UTMP_H
#include <utmp.h>
+#endif
#ifdef HAVE_UTMPX_H
#include <utmpx.h>