* stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
_G_USING_THUNKS is not defined.
From-SVN: r18422
+Fri Mar 6 00:12:28 1998 H.J. Lu (hjl@gnu.org)
+
+ * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
+ _G_USING_THUNKS is not defined.
+
1998-02-25 Jason Merrill <jason@yorick.cygnus.com>
* stl_config.h: Work around glibc pthread.h bug.
# define __STL_EXPLICIT_FUNCTION_TMPL_ARGS
# define __STL_MEMBER_TEMPLATES
# endif
-# if !defined(_NOTHREADS) && __GLIBC__ >= 2
+ /* 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 pthread.h. */