summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-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>