--- libfcgi/fcgi_stdio.c.orig 2001-09-01 03:09:30.000000000 +0200 +++ libfcgi/fcgi_stdio.c 2009-01-24 15:14:19.000000000 +0100 @@ -40,7 +40,12 @@ #ifndef _WIN32 +#if defined(__APPLE__) +#include +#define environ (*_NSGetEnviron()) +#else extern char **environ; +#endif #ifdef HAVE_FILENO_PROTO #include