From: Matthias Dieter Wallnöfer Date: Thu, 23 Feb 2012 10:41:11 +0000 (+0100) Subject: s3:smbd/utmp.c - fix the build on FreeBSD 9 without utmp.h X-Git-Tag: samba-4.0.0alpha18~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=101bd184d1a007b36e4fb889434e3013bdd3d1ea;p=thirdparty%2Fsamba.git 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 Autobuild-Date: Thu Feb 23 19:17:25 CET 2012 on sn-devel-104 --- diff --git a/source3/smbd/utmp.c b/source3/smbd/utmp.c index 47462f6d852..6837c078cfe 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 +#endif #ifdef HAVE_UTMPX_H #include