1From e95609e4ae40a794ed198924505fd22d7d86a124 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 18 Mar 2017 10:16:14 -0700
4Subject: [PATCH 2/2] POSIX_SPAWN_USEVFORK is not linux specific but glibc
5 specific
6
7Fixes
8cmdline.cc:206:12: error: use of undeclared identifier 'POSIX_SPAWN_USEVFORK'
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12Upstream-Status: Pending
13
14 libtest/cmdline.cc | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/libtest/cmdline.cc b/libtest/cmdline.cc
18index 29a22de..34f0a89 100644
19--- a/libtest/cmdline.cc
20+++ b/libtest/cmdline.cc
21@@ -201,7 +201,7 @@ Application::error_t Application::run(const char *args[])
22
23   fatal_assert(posix_spawnattr_setsigmask(&spawnattr, &mask) == 0);
24
25-#if defined(POSIX_SPAWN_USEVFORK) || defined(__linux__)
26+#if defined(POSIX_SPAWN_USEVFORK) || defined(__GLIBC__)
27   // Use USEVFORK on linux
28   flags |= POSIX_SPAWN_USEVFORK;
29 #endif
30--
312.12.0
32
33