aboutsummaryrefslogtreecommitdiffstats
path: root/community/libtbb/musl.patch
blob: 92309a7cf2fa8f6ed61fd1900d102cff9ab079e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/src/tbbmalloc/proxy.cpp.orig	2018-10-17 14:05:31.311723013 +0200
+++ b/src/tbbmalloc/proxy.cpp	2018-10-17 14:06:32.972726194 +0200
@@ -28,6 +28,7 @@
 // of aligned_alloc as required by new C++ standard, this makes it hard to
 // redefine aligned_alloc here. However, running on systems with new libc
 // version, it still needs it to be redefined, thus tricking system headers
+#if defined(__GLIBC__)
 #if defined(__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 16) && _GLIBCXX_HAVE_ALIGNED_ALLOC
 // tell <cstdlib> that there is no aligned_alloc
 #undef _GLIBCXX_HAVE_ALIGNED_ALLOC
@@ -37,6 +38,7 @@
 #include <cstdlib>
 #undef aligned_alloc
 #endif // defined(__GLIBC_PREREQ)&&!__GLIBC_PREREQ(2, 16)&&_GLIBCXX_HAVE_ALIGNED_ALLOC
+#endif // defined(__GLIBC__)
 #endif // __linux__ && !__ANDROID__
 
 #include "proxy.h"