about summary refs log tree commit diff
path: root/posix/environ.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/environ.c')
-rw-r--r--posix/environ.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/posix/environ.c b/posix/environ.c
new file mode 100644
index 0000000000..3eee48e7ea
--- /dev/null
+++ b/posix/environ.c
@@ -0,0 +1,8 @@
+/* This file just defines the `__environ' variable (and alias `environ').  */
+
+#include <unistd.h>
+#include <stddef.h>
+
+/* This must be initialized; we cannot have a weak alias into bss.  */
+char **__environ = NULL;
+weak_alias (__environ, environ)