]> git.pld-linux.org Git - packages/curl.git/blob - sched.patch
upstream build fix for !x86 && !arm64
[packages/curl.git] / sched.patch
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  lib/easy_lock.h | 3 +++
11  1 file changed, 3 insertions(+)
12
13 diff --git a/lib/easy_lock.h b/lib/easy_lock.h
14 index 819f50ce815b8..1f54289ceb2d3 100644
15 --- a/lib/easy_lock.h
16 +++ b/lib/easy_lock.h
17 @@ -36,6 +36,9 @@
18  
19  #elif defined (HAVE_ATOMIC)
20  #include <stdatomic.h>
21 +#if defined(HAVE_SCHED_YIELD)
22 +#include <sched.h>
23 +#endif
24  
25  #define curl_simple_lock atomic_bool
26  #define CURL_SIMPLE_LOCK_INIT false
This page took 0.053857 seconds and 4 git commands to generate.