From 1dccd3404486f171085d7239b2fbc710657c156e Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Fri, 9 Sep 2022 16:18:18 +0200 Subject: [PATCH 1/2] Fix build against musl libc Probably MALLOC_UNIXLIKE_OVERLOAD_ENABLED only works with glibc, so use __GLIBC__ in addition to __linux__ to define it. Origin: Source Mage GNU/Linux Upstream-Status: Submitted [https://github.com/oneapi-src/oneTBB/pull/899] Signed-off-by: Ismael Luceno --- src/tbbmalloc_proxy/proxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbbmalloc_proxy/proxy.h b/src/tbbmalloc_proxy/proxy.h index 5f0133f9e092..ba1a07c396c1 100644 --- a/src/tbbmalloc_proxy/proxy.h +++ b/src/tbbmalloc_proxy/proxy.h @@ -17,7 +17,7 @@ #ifndef _TBB_malloc_proxy_H_ #define _TBB_malloc_proxy_H_ -#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__ +#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED (__linux__ && __GLIBC__) #define MALLOC_ZONE_OVERLOAD_ENABLED __APPLE__ // MALLOC_UNIXLIKE_OVERLOAD_ENABLED depends on MALLOC_CHECK_RECURSION stuff -- 2.37.3 .