diff options
author | Mark Kettenis <kettenis@gnu.org> | 1999-05-17 23:03:48 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-05-17 17:03:48 -0600 |
commit | a9a00d29b4180f7f98d7e7db13fe1f96a8359211 (patch) | |
tree | edc81b957a7537f294bd56c187c6e9026045b5cb /libstdc++ | |
parent | 180013289b6ff93f24cabcafb78b1d2a4f02b976 (diff) | |
download | gcc-a9a00d29b4180f7f98d7e7db13fe1f96a8359211.zip gcc-a9a00d29b4180f7f98d7e7db13fe1f96a8359211.tar.gz gcc-a9a00d29b4180f7f98d7e7db13fe1f96a8359211.tar.bz2 |
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
Diffstat (limited to 'libstdc++')
-rw-r--r-- | libstdc++/stl/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++/stl/stl_config.h | 18 |
2 files changed, 15 insertions, 8 deletions
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 <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> * 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 |