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