aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pj_mutex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pj_mutex.c b/src/pj_mutex.c
index f61be2e2..349537c8 100644
--- a/src/pj_mutex.c
+++ b/src/pj_mutex.c
@@ -28,6 +28,11 @@
/* projects.h and windows.h conflict - avoid this! */
+#if defined(MUTEX_pthread) && !defined(_XOPEN_SOURCE)
+// For pthread_mutexattr_settype
+#define _XOPEN_SOURCE 500
+#endif
+
#ifndef _WIN32
#include <projects.h>
#else