about summary refs log tree commit diff
path: root/src/env/__environ.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env/__environ.c')
-rw-r--r--src/env/__environ.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/env/__environ.c b/src/env/__environ.c
new file mode 100644
index 00000000..d7bd5e50
--- /dev/null
+++ b/src/env/__environ.c
@@ -0,0 +1,7 @@
+#include "libc.h"
+
+#undef environ
+char **___environ = 0;
+weak_alias(___environ, __environ);
+weak_alias(___environ, _environ);
+weak_alias(___environ, environ);