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
6 Patched-by: Harry Sintonen
10 lib/easy_lock.h | 3 +++
11 1 file changed, 3 insertions(+)
13 diff --git a/lib/easy_lock.h b/lib/easy_lock.h
14 index 819f50ce815b8..1f54289ceb2d3 100644
19 #elif defined (HAVE_ATOMIC)
20 #include <stdatomic.h>
21 +#if defined(HAVE_SCHED_YIELD)
25 #define curl_simple_lock atomic_bool
26 #define CURL_SIMPLE_LOCK_INIT false