pandemonium_engine_minimal/thirdparty/vhacd/0003-fix-musl-build.patch
2023-12-14 21:54:22 +01:00

16 lines
444 B
Diff

diff --git a/thirdparty/vhacd/inc/vhacdMutex.h b/thirdparty/vhacd/inc/vhacdMutex.h
index 6b09259200..d587dd6387 100644
--- a/thirdparty/vhacd/inc/vhacdMutex.h
+++ b/thirdparty/vhacd/inc/vhacdMutex.h
@@ -71,7 +71,9 @@
#include <pthread.h>
#endif
-#if defined(__APPLE__)
+// -- PANDEMONIUM start --
+#if defined(__APPLE__) || !defined(__GLIBC__)
+// -- PANDEMONIUM end --
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
#endif