mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:11:45 +03:00
easy_lock.h: include sched.h if available to fix build
Patched-by: Harry Sintonen Closes #9054
This commit is contained in:
parent
45ac4d0194
commit
e2e7f54b7b
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue