diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-12-12 05:09:18 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-12-12 05:09:18 +0000 |
commit | 571744447c23f91feb6439948f3a619aca850dfb (patch) | |
tree | 996c6f90721d69494683ae213ec22784d02a899a /src/misc/initgroups.c | |
parent | ac45692a53a1b8d2ede329d91652d43c1fb5dc8d (diff) | |
download | musl-571744447c23f91feb6439948f3a619aca850dfb.tar.gz musl-571744447c23f91feb6439948f3a619aca850dfb.tar.xz musl-571744447c23f91feb6439948f3a619aca850dfb.zip |
include cleanups: remove unused headers and add feature test macros
Diffstat (limited to 'src/misc/initgroups.c')
-rw-r--r-- | src/misc/initgroups.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/misc/initgroups.c b/src/misc/initgroups.c index 545d1859..922a9581 100644 --- a/src/misc/initgroups.c +++ b/src/misc/initgroups.c @@ -1,11 +1,7 @@ -#include <sys/types.h> -#include <unistd.h> +#define _GNU_SOURCE #include <grp.h> #include <limits.h> -int getgrouplist(const char *, gid_t, gid_t *, int *); -int setgroups(size_t, const gid_t *); - int initgroups(const char *user, gid_t gid) { gid_t groups[NGROUPS_MAX]; |