mirror of
https://github.com/godotengine/godot
synced 2024-09-05 23:13:50 +00:00
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.
This commit is contained in:
parent
435cced7d8
commit
589eb80a90
15
thirdparty/vhacd/0003-fix-musl-build.patch
vendored
Normal file
15
thirdparty/vhacd/0003-fix-musl-build.patch
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
||||
|
4
thirdparty/vhacd/inc/vhacdMutex.h
vendored
4
thirdparty/vhacd/inc/vhacdMutex.h
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue