mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
17 lines
390 B
Diff
17 lines
390 B
Diff
--- src/fastcgi/lfcgi.c.orig 2009-09-19 15:40:19.000000000 +0200
|
|
+++ src/fastcgi/lfcgi.c 2009-09-19 15:46:37.000000000 +0200
|
|
@@ -76,8 +76,11 @@
|
|
#define IO_INPUT "_input"
|
|
#define IO_OUTPUT "_output"
|
|
|
|
-#ifndef _WIN32
|
|
-extern char **environ;
|
|
+#ifdef __APPLE__
|
|
+#include <crt_externs.h>
|
|
+#define environ (*_NSGetEnviron())
|
|
+#else
|
|
+ extern char **environ;
|
|
#endif
|
|
|
|
static char **old_env;
|