mirror of
https://github.com/fluencelabs/musl
synced 2025-06-25 20:51:53 +00:00
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.
This commit is contained in:
@ -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) \
|
||||
|
Reference in New Issue
Block a user