package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
300 B
14 lines
300 B
2 years ago
|
diff --git a/lib/easy_lock.h b/lib/easy_lock.h
|
||
|
--- a/lib/easy_lock.h
|
||
|
+++ b/lib/easy_lock.h
|
||
|
@@ -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
|