diff options
Diffstat (limited to 'gcc/gthr-solaris.h')
-rw-r--r-- | gcc/gthr-solaris.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/gthr-solaris.h b/gcc/gthr-solaris.h index 291210d4e8c..6d7ff2538cd 100644 --- a/gcc/gthr-solaris.h +++ b/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; } |