projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19e48c5
)
declare environ in unistd.h when _GNU_SOURCE feature test macro is used
author
Rich Felker
<dalias@aerifal.cx>
Sat, 2 Jun 2012 20:51:04 +0000
(16:51 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 2 Jun 2012 20:51:04 +0000
(16:51 -0400)
lots of broken programs expect this, and it's gotten to the point of
being a troubleshooting FAQ topic. best to just fix it.
include/unistd.h
patch
|
blob
|
history
diff --git
a/include/unistd.h
b/include/unistd.h
index e4e3ac59e4f8d771ce279fc66964d004f2de7f05..7f2dd687345a8cd1b1007b2d0200f06b05bb1687 100644
(file)
--- a/
include/unistd.h
+++ b/
include/unistd.h
@@
-168,6
+168,7
@@
char *getusershell(void);
#endif
#ifdef _GNU_SOURCE
+extern char **environ;
int setresuid(uid_t, uid_t, uid_t);
int setresgid(gid_t, gid_t, gid_t);
int getresuid(uid_t *, uid_t *, uid_t *);