diff options
Diffstat (limited to 'meta/recipes-support/curl/files')
-rw-r--r-- | meta/recipes-support/curl/files/0001-easy_lock.h-include-sched.h-if-available-to-fix-buil.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/files/0001-easy_lock.h-include-sched.h-if-available-to-fix-buil.patch b/meta/recipes-support/curl/files/0001-easy_lock.h-include-sched.h-if-available-to-fix-buil.patch new file mode 100644 index 0000000000..771bdb2b96 --- /dev/null +++ b/meta/recipes-support/curl/files/0001-easy_lock.h-include-sched.h-if-available-to-fix-buil.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From e2e7f54b7bea521fa8373095d0f43261a720cda0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Stenberg <daniel@haxx.se> | ||
3 | Date: Mon, 27 Jun 2022 08:46:21 +0200 | ||
4 | Subject: [PATCH] easy_lock.h: include sched.h if available to fix build | ||
5 | |||
6 | Patched-by: Harry Sintonen | ||
7 | |||
8 | Closes #9054 | ||
9 | |||
10 | Upstream-Status: Backport [e2e7f54b7bea521fa8373095d0f43261a720cda0] | ||
11 | |||
12 | Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org> | ||
13 | --- | ||
14 | lib/easy_lock.h | 3 +++ | ||
15 | 1 file changed, 3 insertions(+) | ||
16 | |||
17 | diff --git a/lib/easy_lock.h b/lib/easy_lock.h | ||
18 | index 819f50ce8..1f54289ce 100644 | ||
19 | --- a/lib/easy_lock.h | ||
20 | +++ b/lib/easy_lock.h | ||
21 | @@ -36,6 +36,9 @@ | ||
22 | |||
23 | #elif defined (HAVE_ATOMIC) | ||
24 | #include <stdatomic.h> | ||
25 | +#if defined(HAVE_SCHED_YIELD) | ||
26 | +#include <sched.h> | ||
27 | +#endif | ||
28 | |||
29 | #define curl_simple_lock atomic_bool | ||
30 | #define CURL_SIMPLE_LOCK_INIT false | ||
31 | -- | ||
32 | 2.35.1 | ||
33 | |||