summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog5
-rw-r--r--libgomp/config/posix/lock.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index a4abc445a87..6e5b09fb5a0 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ PR libgomp/26308
+ * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
+
2007-06-21 Jakub Jelinek <jakub@redhat.com>
PR middle-end/32362
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"