projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plural rule evaluator rewrite for dcngettext
[oweals/musl.git]
/
src
/
misc
/
initgroups.c
diff --git
a/src/misc/initgroups.c
b/src/misc/initgroups.c
index 545d1859734493b92752ec7a49c09e56f9b6f0f5..922a958142b0ad7b1f331f30725ecec29b91a309 100644
(file)
--- 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>
#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];
int initgroups(const char *user, gid_t gid)
{
gid_t groups[NGROUPS_MAX];