aboutsummaryrefslogtreecommitdiff
path: root/src/pj_mutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_mutex.cpp')
-rw-r--r--src/pj_mutex.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pj_mutex.cpp b/src/pj_mutex.cpp
index 61487cec..3752324c 100644
--- a/src/pj_mutex.cpp
+++ b/src/pj_mutex.cpp
@@ -34,7 +34,9 @@
#endif
/* For PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP */
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#ifndef _WIN32
#include "proj_config.h"