This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

4.1/4.2 PATCH: Fix building libobjc on Tru64 UNIX V4.0F (PR libobjc/26309)


As described in PR libobjc/26309, libobjc fails to build on Tru64 UNIX
V4.0F.  The following trivial patch fixes this and allows the bootstrap to
finish successfully on both alpha-dec-osf4.0f and alpha-dec-osf5.1b.

The bug is a regression from the 4.0 branch.

Ok for mainline and 4.1 branch?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Fri Feb 10 19:30:51 2006  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* thr-objc.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.

Index: libobjc/thr-objc.c
===================================================================
--- libobjc/thr-objc.c	(revision 110838)
+++ libobjc/thr-objc.c	(working copy)
@@ -26,8 +26,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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]