summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-02 16:51:04 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-02 16:51:04 -0400
commitd200bd727beab4f687e4891e2febc16b4ab97020 (patch)
tree1e4f394843596ff3ef44696652c50b9bbf59758d /include
parent19e48c5531fda9c4767b99b754cb9345902dd100 (diff)
downloadmusl-d200bd727beab4f687e4891e2febc16b4ab97020.tar.gz
musl-d200bd727beab4f687e4891e2febc16b4ab97020.tar.bz2
musl-d200bd727beab4f687e4891e2febc16b4ab97020.tar.xz
musl-d200bd727beab4f687e4891e2febc16b4ab97020.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index e4e3ac59..7f2dd687 100644
--- 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 *);