summaryrefslogtreecommitdiff
path: root/libobjc
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 /libobjc
parentf373184635eadc531021931d2d56ec2b4a59c7fa (diff)
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 'libobjc')
-rw-r--r--libobjc/ChangeLog4
-rw-r--r--libobjc/thr.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog
index 6559fcce24c7..1d0814dd3189 100644
--- a/libobjc/ChangeLog
+++ b/libobjc/ChangeLog
@@ -1,3 +1,7 @@
+2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * thr.c (_XOPEN_SOURCE): Define as 600.
+
2014-07-27 Alan Modra <amodra@gmail.com>
Matthias Klose <doko@ubuntu.com>
diff --git a/libobjc/thr.c b/libobjc/thr.c
index 27c7fe6bdb44..988c0ff1841a 100644
--- a/libobjc/thr.c
+++ b/libobjc/thr.c
@@ -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"