From c3b7f48a19a086997d2948b65cc63ba5a9a51f67 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 28 Jun 2015 18:49:41 +0200 Subject: pj_mutex.c: avoid warning about pthread_mutexattr_settype being undefined --- src/pj_mutex.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 #else -- cgit v1.2.3