summaryrefslogtreecommitdiff
path: root/libobjc/thr.c
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2014-11-05 09:52:42 +0000
committerRainer Orth <ro@gcc.gnu.org>2014-11-05 09:52:42 +0000
commit8c7686294ebecda8d3801e0a38ba174c9b527f8f (patch)
treef4bc097a6d220c030eaf0ddc1917e2f0c1be9e3e /libobjc/thr.c
parentf9d53c273b8b723de06bfdf77bc06ce0227d3614 (diff)
downloadgcc-8c7686294ebecda8d3801e0a38ba174c9b527f8f.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. From-SVN: r217117
Diffstat (limited to 'libobjc/thr.c')
-rw-r--r--libobjc/thr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libobjc/thr.c b/libobjc/thr.c
index 27c7fe6bdb4..988c0ff1841 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"