stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for Linux.
authorMark Kettenis <kettenis@gnu.org>
Mon, 17 May 1999 23:03:48 +0000 (23:03 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 May 1999 23:03:48 +0000 (17:03 -0600)
        * stl_config.h: Only define __STL_PTHREADS with GLIBC >= 2 for
        Linux.

From-SVN: r26982

libstdc++/stl/ChangeLog
libstdc++/stl/stl_config.h

index 10669ea9b4c886508183b7738e0dc4c6ddfc3e5a..f23f4fb1937b0562b72d7ffc19c3a8d72c093a47 100644 (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>
 
        * stl_config.h (__CYGWIN__): Cygwin newlib RTL lacks drand48.
index f9295f1f1dd03dfa7a17287a76cfc5bf43854d84..d72f9e1c74661301d1ca3195ccaa5f82713d0235 100644 (file)
 #     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