aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/environ.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/posix/environ.c b/posix/environ.c
index 3eee48e7ea..a0ed0d80ea 100644
--- a/posix/environ.c
+++ b/posix/environ.c
@@ -6,3 +6,7 @@
/* This must be initialized; we cannot have a weak alias into bss. */
char **__environ = NULL;
weak_alias (__environ, environ)
+
+/* The SVR4 ABI says `_environ' will be the name to use
+ in case the user overrides the weak alias `environ'. */
+weak_alias (__environ, _environ)