summaryrefslogtreecommitdiff
path: root/libgomp/config
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-05 09:52:42 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-05 09:52:42 +0000
commit08344fc762bb7f7ad5ae6608d1b070cf25bb5445 (patch)
treef4bc097a6d220c030eaf0ddc1917e2f0c1be9e3e /libgomp/config
parentf373184635eadc531021931d2d56ec2b4a59c7fa (diff)
downloadgcc-08344fc762bb7f7ad5ae6608d1b070cf25bb5445.tar.gz
Fix gnu11 fallout on Solaris 10+
libobjc: * thr.c (_XOPEN_SOURCE): Define as 600. libiberty: * sigsetmask.c (_POSIX_SOURCE): Remove. libgomp: * config/posix/lock.c (_XOPEN_SOURCE) Define as 600. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217117 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/config')
-rw-r--r--libgomp/config/posix/lock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libgomp/config/posix/lock.c b/libgomp/config/posix/lock.c
index e1e38f4c6a8..c65e041863d 100644
--- a/libgomp/config/posix/lock.c
+++ b/libgomp/config/posix/lock.c
@@ -30,8 +30,9 @@
to do better and streamline the locking as well as reduce the size
of the types exported. */
-/* We need Unix98 extensions to get recursive locks. */
-#define _XOPEN_SOURCE 500
+/* We need UNIX98/XPG5 extensions to get recursive locks. Request XPG6 since
+ Solaris requires this for C99 and later. */
+#define _XOPEN_SOURCE 600
#include "libgomp.h"