1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/gearmand/libtest-cmdline.cc.patch
Aaron Hurt 1d12b9eb04 testing/gearmand: new aport
http://gearman.org
A distributed job queue
2016-06-17 02:03:46 +02:00

22 lines
499 B
Diff

--- 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