aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoredechaux <edechaux@users.noreply.github.com>2017-08-04 09:45:22 +0200
committerGitHub <noreply@github.com>2017-08-04 09:45:22 +0200
commit181cd2f3374f3a030b198dc4d2aace467637b584 (patch)
treed687acbbb070c2de581996ba4e87a1a4b1f4c232 /src
parent9b3290c09850893eefaae2d7b8074d4740dcece5 (diff)
downloadPROJ-181cd2f3374f3a030b198dc4d2aace467637b584.tar.gz
PROJ-181cd2f3374f3a030b198dc4d2aace467637b584.zip
Fix the Solaris 11.3 compilation error
When _XOPEN_SOURCE 500 is defined on Solaris 11 the following error message is displayed : "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" As pthread_mutexattr_settype is available without _XOPEN_SOURCE defined, the easier way to fix the error is to disable it.
Diffstat (limited to 'src')
-rw-r--r--src/pj_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_mutex.c b/src/pj_mutex.c
index 1590daa6..2bcf31a7 100644
--- a/src/pj_mutex.c
+++ b/src/pj_mutex.c
@@ -28,7 +28,7 @@
/* projects.h and windows.h conflict - avoid this! */
-#if defined(MUTEX_pthread) && !defined(_XOPEN_SOURCE)
+#if defined(MUTEX_pthread) && !defined(_XOPEN_SOURCE) && !defined(__sun)
/* For pthread_mutexattr_settype */
#define _XOPEN_SOURCE 500
#endif