diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2006-02-21 19:17:27 +0000 |
---|---|---|
committer | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2006-02-21 19:17:27 +0000 |
commit | 739e453cbbe31a7952a5103f6293a4c5248a06d3 (patch) | |
tree | e4165231658c14b51901f609d29f17d1a90c63bf | |
parent | 08e5b742444f3f7cd61a420707956b3498b9f194 (diff) |
PR libobjc/26309
* thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch@111340 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libobjc/ChangeLog | 5 | ||||
-rw-r--r-- | libobjc/thr-objc.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index e435339d85a..99356fb887a 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,8 @@ +2006-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + PR libobjc/26309 + * thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX. + 2005-12-15 David Ayers <d.ayers@inode.at> PR libobjc/14382 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" |