easy_lock.h: include sched.h if available to fix build

Patched-by: Harry Sintonen

Closes #9054
This commit is contained in:
Daniel Stenberg 2022-06-27 08:46:21 +02:00
parent 45ac4d0194
commit e2e7f54b7b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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