diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2014-11-05 09:52:42 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2014-11-05 09:52:42 +0000 |
commit | 8c7686294ebecda8d3801e0a38ba174c9b527f8f (patch) | |
tree | f4bc097a6d220c030eaf0ddc1917e2f0c1be9e3e | |
parent | f9d53c273b8b723de06bfdf77bc06ce0227d3614 (diff) | |
download | gcc-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
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/config/posix/lock.c | 5 | ||||
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/sigsetmask.c | 1 | ||||
-rw-r--r-- | libobjc/ChangeLog | 4 | ||||
-rw-r--r-- | libobjc/thr.c | 5 |
6 files changed, 18 insertions, 5 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" diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index d30a80b22ab..ff06b184aaa 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> + + * sigsetmask.c (_POSIX_SOURCE): Remove. + 2014-10-28 Yury Gribov <y.gribov@samsung.com> * strtoll.c: New file. diff --git a/libiberty/sigsetmask.c b/libiberty/sigsetmask.c index 3b708b16adb..f7a24246d1f 100644 --- a/libiberty/sigsetmask.c +++ b/libiberty/sigsetmask.c @@ -15,7 +15,6 @@ be the value @code{1}). */ -#define _POSIX_SOURCE #include <ansidecl.h> /* Including <sys/types.h> seems to be needed by ISC. */ #include <sys/types.h> diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index 6559fcce24c..1d0814dd318 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 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" |