From: law Date: Mon, 17 May 1999 23:03:48 +0000 (+0000) Subject: * stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=864b558e68fd2ea41b203a5ba565226281ef54c0;p=platform%2Fupstream%2Flinaro-gcc.git * stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for Linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26982 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index 10669ea..f23f4fb 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -1,3 +1,8 @@ +1999-05-17 Mark Kettenis + + * stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for + Linux. + Mon May 17 03:33:47 1999 Mumit Khan * stl_config.h (__CYGWIN__): Cygwin newlib RTL lacks drand48. diff --git a/libstdc++/stl/stl_config.h b/libstdc++/stl/stl_config.h index f9295f1..d72f9e1 100644 --- a/libstdc++/stl/stl_config.h +++ b/libstdc++/stl/stl_config.h @@ -165,14 +165,16 @@ # define __SGI_STL_USE_AUTO_PTR_CONVERSIONS # define __STL_USE_NAMESPACES # endif - /* glibc pre 2.0 is very buggy. We have to disable thread for it. - It should be upgraded to glibc 2.0 or later. */ -# if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS) -# define __STL_PTHREADS -# ifdef __STRICT_ANSI__ - /* Work around a bug in the glibc 2.0.x pthread.h. */ -# define sigset_t __sigset_t -# endif +# if defined(__linux__) + /* glibc pre 2.0 is very buggy. We have to disable thread for it. + It should be upgraded to glibc 2.0 or later. */ +# if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS) +# define __STL_PTHREADS +# ifdef __STRICT_ANSI__ + /* Work around a bug in the glibc 2.0.x pthread.h. */ +# define sigset_t __sigset_t +# endif +# endif # endif # ifdef __EXCEPTIONS # define __STL_USE_EXCEPTIONS