From: Andreas Schneider Date: Tue, 20 Nov 2018 09:37:01 +0000 (+0100) Subject: lib:util: Always include unistd.h for setgroups X-Git-Tag: tdb-1.3.17~671 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a418f731b220d75f27c9885c373d7a2c0b41b57;p=thirdparty%2Fsamba.git lib:util: Always include unistd.h for setgroups This is needed to pass configure checks Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/lib/util/setid.c b/lib/util/setid.c index eb7511083f0..10014618def 100644 --- a/lib/util/setid.c +++ b/lib/util/setid.c @@ -34,6 +34,9 @@ #include #include +#if defined(HAVE_UNISTD_H) +#include +#endif #ifdef HAVE_SYS_PRIV_H #include #endif @@ -57,9 +60,6 @@ int samba_setgroups(size_t setlen, const gid_t *gidset); #endif #if defined(HAVE_LINUX_THREAD_CREDENTIALS) -#if defined(HAVE_UNISTD_H) -#include -#endif #if defined(HAVE_SYSCALL_H) #include #endif