stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for Linux.

* stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for
        Linux.

From-SVN: r26982
This commit is contained in:
Mark Kettenis 1999-05-17 23:03:48 +00:00 committed by Jeff Law
parent 180013289b
commit a9a00d29b4
2 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,8 @@
1999-05-17 Mark Kettenis <kettenis@gnu.org>
* stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for
Linux.
Mon May 17 03:33:47 1999 Mumit Khan <khan@xraylith.wisc.edu> Mon May 17 03:33:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
* stl_config.h (__CYGWIN__): Cygwin newlib RTL lacks drand48. * stl_config.h (__CYGWIN__): Cygwin newlib RTL lacks drand48.

View File

@ -165,14 +165,16 @@
# define __SGI_STL_USE_AUTO_PTR_CONVERSIONS # define __SGI_STL_USE_AUTO_PTR_CONVERSIONS
# define __STL_USE_NAMESPACES # define __STL_USE_NAMESPACES
# endif # endif
/* glibc pre 2.0 is very buggy. We have to disable thread for it. # if defined(__linux__)
It should be upgraded to glibc 2.0 or later. */ /* glibc pre 2.0 is very buggy. We have to disable thread for it.
# if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS) It should be upgraded to glibc 2.0 or later. */
# define __STL_PTHREADS # if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS)
# ifdef __STRICT_ANSI__ # define __STL_PTHREADS
/* Work around a bug in the glibc 2.0.x pthread.h. */ # ifdef __STRICT_ANSI__
# define sigset_t __sigset_t /* Work around a bug in the glibc 2.0.x pthread.h. */
# endif # define sigset_t __sigset_t
# endif
# endif
# endif # endif
# ifdef __EXCEPTIONS # ifdef __EXCEPTIONS
# define __STL_USE_EXCEPTIONS # define __STL_USE_EXCEPTIONS