allocator_traits<allocator<T>> partial specialization
[gcc.git] / boehm-gc / misc.c
index 23e226df52ab60239a43fff5be9d67fa69e6a21d..069c7d57ad0086e7c4b413dc157a62f67aa1ae40 100644 (file)
@@ -674,7 +674,7 @@ void GC_init_inner()
 #   if !defined(THREADS) || defined(GC_PTHREADS) || defined(GC_WIN32_THREADS) \
        || defined(GC_SOLARIS_THREADS)
       if (GC_stackbottom == 0) {
-        # ifdef GC_PTHREADS
+        # if defined(GC_PTHREADS) && ! defined(GC_SOLARIS_THREADS)
        /* Use thread_stack_base if available, as GC could be initialized from
           a thread that is not the "main" thread.  */
        GC_stackbottom = GC_get_thread_stack_base();