This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

Re: 3.4 PATCH: Fix libjava Tru64 UNIX V4.0F bootstrap failure with pthreads


Tom Tromey writes:

> >>>>> "Rainer" == Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> writes:
> 
> Rainer> V5.1 changed that to
> Rainer> _XOPEN_SOURCE_EXTENDED || (_XOPEN_SOURCE && _OSF_SOURCE) || !_XOPEN_SOURCE
> 
> Rainer> We cannot define _XOPEN_SOURCE_EXTENDED since this completely
> Rainer> breaks the tree due to conflicting declarations, and need
> Rainer> _XOPEN_SOURCE for other reasons.
> 
> Can we define _OSF_SOURCE?

We don't need to, it's already defined.  But unlike V5.1, this doesn't help
on V4.0F, since the _OSF_SOURCE test isn't part of the definition guard for
usleep in that release.

> Rainer> Ok for mainline?
> 
> I think it is fine.  I'd have a preference for the _OSF_SOURCE
> solution, if it is possible and advisable -- I really don't know.
> It is up to you.

Since the _OSF_SOURCE route doesn't work and the only other alternative is
to run fixincludes on unistd.h, I'm going to check in the patch as is.

Thanks.
	Rainer

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


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