Files

17 lines
390 B
Diff
Raw Permalink Normal View History

2023-03-19 09:27:36 -07:00
--- 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;