From 181cd2f3374f3a030b198dc4d2aace467637b584 Mon Sep 17 00:00:00 2001 From: edechaux Date: Fri, 4 Aug 2017 09:45:22 +0200 Subject: 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. --- src/pj_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3