about summary refs log tree commit diff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-02-17 14:24:39 -0500
committerRich Felker <dalias@aerifal.cx>2013-02-17 14:24:39 -0500
commit23ccb80fcb325bd89e40508a57ff4ccedea6926d (patch)
treeff3bc4076b971e615c7107cf6827ba694f8ae7ec /src/internal
parentcac872957e8c9e3fc13904c1c55eee0253ec1382 (diff)
downloadmusl-23ccb80fcb325bd89e40508a57ff4ccedea6926d.tar.gz
musl-23ccb80fcb325bd89e40508a57ff4ccedea6926d.tar.xz
musl-23ccb80fcb325bd89e40508a57ff4ccedea6926d.zip
consistently use the internal name __environ for environ
patch by Jens Gustedt.
previously, the intended policy was to use __environ in code that must
conform to the ISO C namespace requirements, and environ elsewhere.
this policy was not followed in practice anyway, making things
confusing. on top of that, Jens reported that certain combinations of
link-time optimization options were breaking with the inconsistent
references; this seems to be a compiler or linker bug, but having it
go away is a nice side effect of the changes made here.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/libc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/internal/libc.h b/src/internal/libc.h
index 50891148..c9416f07 100644
--- a/src/internal/libc.h
+++ b/src/internal/libc.h
@@ -57,7 +57,6 @@ void __synccall(void (*)(void *), void *);
 int __setxid(int, int, int, int);
 
 extern char **__environ;
-#define environ __environ
 
 #undef weak_alias
 #define weak_alias(old, new) \