diff --git a/common/compat.c b/common/compat.c index 9314d20b3..1c8ab876d 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