try simple, targeted, hack 1

This commit is contained in:
Viktor Szakats 2025-02-22 01:15:49 +01:00
parent 76d2cc7ab2
commit cda0b11328
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -45,6 +45,12 @@
#elif defined(HAVE_ATOMIC) && defined(HAVE_STDATOMIC_H)
#include <stdatomic.h>
#if defined(HAVE_SCHED_YIELD)
/* Hack for Unity mode. Avoid macro collisions with MUSL 1.25 and older */
#ifdef HEADER_CURL_MEMDEBUG_H
#undef HEADER_CURL_MEMDEBUG_H
#undef calloc
#undef free
#endif
#include <sched.h>
#endif