summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/gthr-solaris.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/gthr-solaris.h')
-rw-r--r--contrib/gcc/gthr-solaris.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/gcc/gthr-solaris.h b/contrib/gcc/gthr-solaris.h
index 291210d..6d7ff25 100644
--- a/contrib/gcc/gthr-solaris.h
+++ b/contrib/gcc/gthr-solaris.h
@@ -81,11 +81,10 @@ typedef mutex_t __gthread_mutex_t;
/* This will not actually work in Solaris 2.5, since libc contains
dummy symbols of all thr_* routines. */
-static void *__gthread_active_ptr = (void *) &thr_create;
-
static inline int
__gthread_active_p (void)
{
+ static void *const __gthread_active_ptr = (void *) &thr_create;
return __gthread_active_ptr != 0;
}
OpenPOWER on IntegriCloud