summaryrefslogtreecommitdiff
path: root/homebrew/fcgi/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/fcgi/patches.sh')
-rwxr-xr-xhomebrew/fcgi/patches.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/homebrew/fcgi/patches.sh b/homebrew/fcgi/patches.sh
new file mode 100755
index 000000000..4d90ce5dd
--- /dev/null
+++ b/homebrew/fcgi/patches.sh
@@ -0,0 +1,18 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/libfcgi/fcgi_stdio.c
++++ b/libfcgi/fcgi_stdio.c
+@@ -40,7 +40,12 @@
+
+ #ifndef _WIN32
+
++#if defined(__APPLE__)
++#include <crt_externs.h>
++#define environ (*_NSGetEnviron())
++#else
+ extern char **environ;
++#endif
+
+ #ifdef HAVE_FILENO_PROTO
+ #include <stdio.h>
+EOF