]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy_lock.h: include sched.h if available to fix build
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Jun 2022 06:46:21 +0000 (08:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Jun 2022 08:59:52 +0000 (10:59 +0200)
Patched-by: Harry Sintonen
Closes #9054

lib/easy_lock.h

index 819f50ce815b8af2b7b741e2a92b0af68bb6a9a8..1f54289ceb2d3b2ebe70a963cc7d48387a327de1 100644 (file)
@@ -36,6 +36,9 @@
 
 #elif defined (HAVE_ATOMIC)
 #include <stdatomic.h>
+#if defined(HAVE_SCHED_YIELD)
+#include <sched.h>
+#endif
 
 #define curl_simple_lock atomic_bool
 #define CURL_SIMPLE_LOCK_INIT false