Skip to content

Commit

Permalink
Fix build when linking against musl
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Calinou committed Nov 10, 2019
1 parent b07958e commit bab93d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VHACD_Lib/inc/vhacdMutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#include <pthread.h>
#endif

#if defined(__APPLE__)
#if defined(__APPLE__) || defined(__linux__)
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
#endif

Expand Down

0 comments on commit bab93d5

Please sign in to comment.