Skip to content

Commit

Permalink
lib:util: Always include unistd.h for setgroups
Browse files Browse the repository at this point in the history
This is needed to pass configure checks

Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Gary Lockyer <[email protected]>
  • Loading branch information
cryptomilk authored and GaryWL committed Nov 22, 2018
1 parent dbdd57e commit 2a418f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/setid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2a418f7

Please sign in to comment.