Skip to content

Commit bab93d5

Browse files
committed
Fix build when linking against musl
musl doesn't define this macro, so it has to be done manually. Since there doesn't seem to be a macro to detect whether musl is used, we should always define the macro on Linux.
1 parent b07958e commit bab93d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VHACD_Lib/inc/vhacdMutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#include <pthread.h>
7272
#endif
7373

74-
#if defined(__APPLE__)
74+
#if defined(__APPLE__) || defined(__linux__)
7575
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
7676
#endif
7777

0 commit comments

Comments
 (0)