mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib:util: Always include unistd.h for setgroups
This is needed to pass configure checks Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
dbdd57e31c
commit
2a418f731b
@ -34,6 +34,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
|
||||
#if defined(HAVE_UNISTD_H)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_PRIV_H
|
||||
#include <sys/priv.h>
|
||||
#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 <unistd.h>
|
||||
#endif
|
||||
#if defined(HAVE_SYSCALL_H)
|
||||
#include <syscall.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user