git.samba.org
/
metze
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6118c2e
)
lib: Add missing include for unistd.h in setid.
author
Andreas Schneider
<asn@samba.org>
Mon, 7 Apr 2014 14:27:22 +0000
(16:27 +0200)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/lib/util/setid.c
b/lib/util/setid.c
index cdf8fd96d3317ba466df9476d45a3fba28bf965b..88195d8ee82680db93f8da456b47393e3c7bdd41 100644
(file)
--- a/
lib/util/setid.c
+++ b/
lib/util/setid.c
@@
-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