From cda0b1132855ae112d822bb0e205899be6cf6c85 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 22 Feb 2025 01:15:49 +0100 Subject: [PATCH] try simple, targeted, hack 1 --- lib/easy_lock.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/easy_lock.h b/lib/easy_lock.h index ec324cfc81..a61df8365a 100644 --- a/lib/easy_lock.h +++ b/lib/easy_lock.h @@ -45,6 +45,12 @@ #elif defined(HAVE_ATOMIC) && defined(HAVE_STDATOMIC_H) #include #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 #endif