summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2005-01-04 19:31:31 +0000
committerjbj <devnull@localhost>2005-01-04 19:31:31 +0000
commit84ec406c35efeb8fb566ceab2fb1a4796cf7b447 (patch)
treec4e2c7a7c3c5d0ad6fc2dcd64921bb3d6a2483e5 /system.h
parent6da6f7fc0a87818021bb07705450a29f46d7f14b (diff)
downloadrpm-84ec406c35efeb8fb566ceab2fb1a4796cf7b447.tar.gz
rpm-84ec406c35efeb8fb566ceab2fb1a4796cf7b447.tar.bz2
rpm-84ec406c35efeb8fb566ceab2fb1a4796cf7b447.zip
- mac os x patches (#133611, #133612, #134637).
CVS patchset: 7673 CVS date: 2005/01/04 19:31:31
Diffstat (limited to 'system.h')
-rw-r--r--system.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/system.h b/system.h
index 841999e49..1a26fa379 100644
--- a/system.h
+++ b/system.h
@@ -49,7 +49,12 @@ extern int chroot (const char *__path)
/*@=superuser =declundef =incondefs @*/
#endif
#if !defined(__GLIBC__) && !defined(__LCLINT__)
+#ifdef __APPLE__
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#else
extern char ** environ;
+#endif /* __APPLE__ */
#endif
#endif