summaryrefslogtreecommitdiff
path: root/libobjc/thr-objc.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-21 19:13:21 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-21 19:13:21 +0000
commit03f0fdd81264feaf39579e6b510639d3dcc61822 (patch)
tree5f69c66b92bf7e72a401bdbfd64d1aec2bf852a2 /libobjc/thr-objc.c
parent622e3203a873b52ca2768e6a198ee1f92528b778 (diff)
downloadgcc-03f0fdd81264feaf39579e6b510639d3dcc61822.tar.gz
PR libobjc/26309
* thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111339 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libobjc/thr-objc.c')
-rw-r--r--libobjc/thr-objc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libobjc/thr-objc.c b/libobjc/thr-objc.c
index a859e1eb0fb..7d6375aaa55 100644
--- a/libobjc/thr-objc.c
+++ b/libobjc/thr-objc.c
@@ -1,5 +1,6 @@
/* GNU Objective C Runtime Thread Interface.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2005, 2006
+ Free Software Foundation, Inc.
This file is part of GCC.
@@ -26,8 +27,11 @@ Boston, MA 02110-1301, USA. */
#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. */
+ compile within libobjc. Unfortunately, this breaks compilation on
+ Tru64 UNIX V4.0F, so disable it there. */
+#ifndef __osf__
#define _XOPEN_SOURCE 500
+#endif
#include "config.h"
#include "tconfig.h"
#include "coretypes.h"