summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/compat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/compat.c b/common/compat.c
index 9314d20..1c8ab87 100644
--- a/common/compat.c
+++ b/common/compat.c
@@ -34,6 +34,12 @@
#include "config.h"
+/*
+ * This is needed to expose pthread_mutexattr_settype and PTHREAD_MUTEX_DEFAULT
+ * on older pthreads implementations
+ */
+#define _XOPEN_SOURCE 600
+
#include "compat.h"
#include <assert.h>