lib: Add missing include for unistd.h in setid.
authorAndreas Schneider <asn@samba.org>
Mon, 7 Apr 2014 14:27:22 +0000 (16:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Apr 2014 12:56:06 +0000 (14:56 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/util/setid.c

index cdf8fd96d3317ba466df9476d45a3fba28bf965b..88195d8ee82680db93f8da456b47393e3c7bdd41 100644 (file)
@@ -57,6 +57,9 @@ int samba_setgroups(size_t setlen, const gid_t *gidset);
 #endif
 
 #if defined(USE_LINUX_THREAD_CREDENTIALS)
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
 #if defined(HAVE_SYSCALL_H)
 #include <syscall.h>
 #endif