summaryrefslogtreecommitdiff
path: root/thirdparty/vhacd/inc
diff options
context:
space:
mode:
authorJames Westman <flyingpimonster@gmail.com>2019-12-10 15:39:19 -0600
committerJames Westman <flyingpimonster@gmail.com>2019-12-10 15:54:32 -0600
commit589eb80a90e947469b0261420f8bba30e867ff0a (patch)
tree797e4c242581ad37dc5e5d0bb6abed89fe02005a /thirdparty/vhacd/inc
parent435cced7d8fbc80e6842d7c171a87d4db1e64fe4 (diff)
Fix build on musl-based systems
On some systems, including Alpine Linux, musl is used instead of glibc. This commit patches the third-party V-HACD module to provide a macro not provided by musl. Fixes #31555.
Diffstat (limited to 'thirdparty/vhacd/inc')
-rw-r--r--thirdparty/vhacd/inc/vhacdMutex.h4
1 files changed, 3 insertions, 1 deletions
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__)
+// -- GODOT start --
+#if defined(__APPLE__) || !defined(__GLIBC__)
+// -- GODOT end --
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
#endif