diff options
author | Aaron Hurt <ahurt@ena.com> | 2016-06-09 13:57:20 -0500 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-17 02:03:46 +0200 |
commit | 1d12b9eb04b0c3f8c63711843ad7ff351af79087 (patch) | |
tree | 37d4c1146a818e1eec00d7e8963f6b779a582fa0 /testing/gearmand/libtest-cmdline.cc.patch | |
parent | ce73ece7e051ab9ecf7a77e4a3a73cc5687080e9 (diff) | |
download | aports-1d12b9eb04b0c3f8c63711843ad7ff351af79087.tar.bz2 aports-1d12b9eb04b0c3f8c63711843ad7ff351af79087.tar.xz |
testing/gearmand: new aport
http://gearman.org
A distributed job queue
Diffstat (limited to 'testing/gearmand/libtest-cmdline.cc.patch')
-rw-r--r-- | testing/gearmand/libtest-cmdline.cc.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/gearmand/libtest-cmdline.cc.patch b/testing/gearmand/libtest-cmdline.cc.patch new file mode 100644 index 0000000000..04dcc210bb --- /dev/null +++ b/testing/gearmand/libtest-cmdline.cc.patch @@ -0,0 +1,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 |