aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gearmand/libtest-cmdline.cc.patch
blob: 04dcc210bb7c65fbdb30e35c7382c9405d04270d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/libtest/cmdline.cc
+++ b/libtest/cmdline.cc
@@ -61,10 +61,6 @@
 #include <algorithm>
 #include <stdexcept>

-#ifndef __USE_GNU
-static char **environ= NULL;
-#endif
-
 #ifndef FD_CLOEXEC
 # define FD_CLOEXEC 0
 #endif
@@ -201,7 +197,7 @@

   fatal_assert(posix_spawnattr_setsigmask(&spawnattr, &mask) == 0);

-#if defined(POSIX_SPAWN_USEVFORK) || defined(__linux__)
+#if defined(POSIX_SPAWN_USEVFORK) && defined(__linux__)
   // Use USEVFORK on linux
   flags |= POSIX_SPAWN_USEVFORK;
 #endif