darwin-extern-environ.patch 221 B

12345678910111213
  1. --- a/lib/spawn-pipe.c (index)
  2. +++ b/lib/spawn-pipe.c (working tree)
  3. @@ -53,7 +53,10 @@
  4. # include <spawn.h>
  5. #endif
  6. +#if defined(__FreeBSD__) || defined(__MACH__)
  7. + extern char** environ;
  8. +#endif
  9. #ifdef EINTR