diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-05 09:52:42 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-11-05 09:52:42 +0000 |
commit | 08344fc762bb7f7ad5ae6608d1b070cf25bb5445 (patch) | |
tree | f4bc097a6d220c030eaf0ddc1917e2f0c1be9e3e /libgomp | |
parent | f373184635eadc531021931d2d56ec2b4a59c7fa (diff) | |
download | gcc-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')
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/config/posix/lock.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 661653e1ac8..b004551ecad 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * config/posix/lock.c (_XOPEN_SOURCE) Define as 600. + 2014-10-06 Marek Polacek <polacek@redhat.com> * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>. 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" |