diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-02 14:38:13 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-02 14:38:13 +0000 |
commit | b131297d8eaf229d8fc1d1c4b149663ba805b9a2 (patch) | |
tree | ca6005e2302195c26a3a5a5e186db4186375cb6f /libgomp/config | |
parent | 0e13e859c81ec88c603876ca1eccfeed30022384 (diff) | |
download | gcc-b131297d8eaf229d8fc1d1c4b149663ba805b9a2.tar.gz |
PR libgomp/26308
* config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126208 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/config')
-rw-r--r-- | libgomp/config/posix/lock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgomp/config/posix/lock.c b/libgomp/config/posix/lock.c index 062174d32d5..59459bb86ce 100644 --- a/libgomp/config/posix/lock.c +++ b/libgomp/config/posix/lock.c @@ -33,8 +33,12 @@ 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. */ +/* We need Unix98 extensions to get recursive locks. On Tru64 UNIX V4.0F, + the declarations are available without _XOPEN_SOURCE, which actually + breaks compilation. */ +#ifndef __osf__ #define _XOPEN_SOURCE 500 +#endif #include "libgomp.h" |