summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Pollak <pardsbane@Buran.local>2008-08-16 11:15:08 -0400
committerLauri Leukkunen <lle@rahina.org>2008-12-30 14:07:53 +0200
commit71cadf0b0328402b106a7816e9b3499355c99c5a (patch)
tree8cf0bd06a4405f087c9e9517c1bd1c16ede5e67a /include
parent8651c7a9ad8a5db30325a0003f68fd534cc69c5c (diff)
This version compiles on os x
Diffstat (limited to 'include')
-rw-r--r--include/externs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/externs.h b/include/externs.h
new file mode 100644
index 0000000..08f87b2
--- /dev/null
+++ b/include/externs.h
@@ -0,0 +1,10 @@
+#ifdef HAVE_CRT_EXTERNS_H
+#include <crt_externs.h>
+#endif
+#ifdef HAVE__NSGETENVIRON
+#define environ (*_NSGetEnviron())
+#else
+ #ifndef __GLIBC__
+ extern char **environ;
+ #endif
+#endif