aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/m4/patches/darwin-extern-environ.patch
blob: a7ffbaec01e2f6d7df5c7f6d5a5b9bda765a5895 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/lib/execute.c	(index)
+++ b/lib/execute.c	(working tree)
@@ -48,6 +48,9 @@
 
 #endif
 
+#if defined(__FreeBSD__) || defined(__MACH__)
+    extern char** environ;
+#endif
 
 #if defined EINTR && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
 
--- a/lib/spawn-pipe.c	(index)
+++ b/lib/spawn-pipe.c	(working tree)
@@ -53,7 +53,10 @@
 # include <spawn.h>

 #endif
 
+#if defined(__FreeBSD__) || defined(__MACH__)
+    extern char** environ;
+#endif
 
 #ifdef EINTR