This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Hurd STL patch
- To: Mark Kettenis <kettenis@wins.uva.nl>
- Subject: Re: Hurd STL patch
- From: Jeffrey A Law <law@upchuck.cygnus.com>
- Date: Tue, 18 May 1999 00:00:54 -0600
- cc: egcs-patches@egcs.cygnus.com, libstdc++@sourceware.cygnus.com, roland@frob.com
- Reply-To: law@cygnus.com
In message <199905141346.PAA00096@delius.kettenis.nl>you write:
> Not all systems that use glibc 2.x have a pthreads library. So
> defining __STL_PTHREADS if __GLIBC__ >= 2 is not right. Currently
> only the Linux port comes with a pthreads implementation.
> The following patch fixes the problem by checking if __linux__ is
> defined. I know this is evil, but I do not see an other option at
> this moment. The best thing to do would be to check if _POSIX_THREADS
> is defined, but this demands the inclusion of <unistd.h>, which would
> result in major name-space pollution. An other solution would be to
> check this at configure time, but there is no infrastructure for this
> for the STL part of the library.
>
> A better solution should be found for the new libstdc++ library
> (that's why I CC'ed you folks).
>
> Mark
>
>
> 1999-05-13 Mark Kettenis <kettenis@gnu.org>
>
> * stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for
> Linux.
Thanks. I've installed this into egcs. Hopefully they'll come up with
a better solution in the new libstdc++.
jeff