mirror of
git://git.musl-libc.org/musl
synced 2025-04-24 20:08:28 +00:00
declare environ in unistd.h when _GNU_SOURCE feature test macro is used
lots of broken programs expect this, and it's gotten to the point of being a troubleshooting FAQ topic. best to just fix it.
This commit is contained in:
parent
19e48c5531
commit
d200bd727b
@ -168,6 +168,7 @@ char *getusershell(void);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
|
extern char **environ;
|
||||||
int setresuid(uid_t, uid_t, uid_t);
|
int setresuid(uid_t, uid_t, uid_t);
|
||||||
int setresgid(gid_t, gid_t, gid_t);
|
int setresgid(gid_t, gid_t, gid_t);
|
||||||
int getresuid(uid_t *, uid_t *, uid_t *);
|
int getresuid(uid_t *, uid_t *, uid_t *);
|
||||||
|
Loading…
Reference in New Issue
Block a user