]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libobjc/thr.c
Fix gnu11 fallout on Solaris 10+
[thirdparty/gcc.git] / libobjc / thr.c
index 27c7fe6bdb4432015977272eb138161efbed6a4e..988c0ff1841acdefa16d52f311ae52bfe2bbc7f8 100644 (file)
@@ -27,8 +27,9 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #define _LIBOBJC
 /* The line below is needed for declarations of functions such as
    pthread_mutexattr_settype, without which gthr-posix.h may fail to
-   compile within libobjc.  */
-#define _XOPEN_SOURCE 500
+   compile within libobjc.  While we only need XPG5 for this, Solaris
+   requires XPG6 for C99 and later.  */
+#define _XOPEN_SOURCE 600
 #include "config.h"
 #include "tconfig.h"
 #include "coretypes.h"