sched.patch 300 B

12345678910111213
  1. diff --git a/lib/easy_lock.h b/lib/easy_lock.h
  2. --- a/lib/easy_lock.h
  3. +++ b/lib/easy_lock.h
  4. @@ -36,6 +36,9 @@
  5. #elif defined (HAVE_ATOMIC)
  6. #include <stdatomic.h>
  7. +#if defined(HAVE_SCHED_YIELD)
  8. +#include <sched.h>
  9. +#endif
  10. #define curl_simple_lock atomic_bool
  11. #define CURL_SIMPLE_LOCK_INIT false