aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/m4/patches/darwin-extern-environ.patch
blob: 5114c8d0c83af707b75673b101bf4c2db77673c9 (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
26
--- a/lib/spawn-pipe.c	(index)
+++ b/lib/spawn-pipe.c	(working tree)
@@ -48,6 +48,10 @@
 
 #endif
 
+#if defined(__FreeBSD__) || defined(__MACH__)
+    extern char** environ;
+#endif
+
 /* The results of open() in this file are not used with fchdir,
    therefore save some unnecessary work in fchdir.c.  */
 #undef open
--- a/lib/execute.c	(index)
+++ b/lib/execute.c	(working tree)
@@ -48,6 +48,10 @@
 
 #endif
 
+#if defined(__FreeBSD__) || defined(__MACH__)
+    extern char** environ;
+#endif
+
 /* The results of open() in this file are not used with fchdir,
    therefore save some unnecessary work in fchdir.c.  */
 #undef open