This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Hurd STL patch



  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


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