From: Bruno Haible Date: Mon, 18 Aug 2008 10:49:10 +0000 (+0200) Subject: Fix link error with Solaris threads. X-Git-Tag: v0.1~7135^2~8 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=0e3f4935a331cbe1a92fa268f33e0b65dd3875ba;p=gnulib.git Fix link error with Solaris threads. --- diff --git a/ChangeLog b/ChangeLog index bc8db383d..84978c0ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-08-18 Bruno Haible + * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not + pthread_in_use(). + +2008-08-18 Bruno Haible + * lib/glthread/threadlib.c: Include . 2008-08-18 Bruno Haible diff --git a/lib/glthread/thread.h b/lib/glthread/thread.h index d88908e01..1a3b695fc 100644 --- a/lib/glthread/thread.h +++ b/lib/glthread/thread.h @@ -250,13 +250,13 @@ typedef thread_t gl_thread_t; # define glthread_create(THREADP, FUNC, ARG) \ (thread_in_use () ? thr_create (NULL, 0, FUNC, ARG, 0, THREADP) : 0) # define glthread_sigmask(HOW, SET, OSET) \ - (pthread_in_use () ? sigprocmask (HOW, SET, OSET) : 0) + (thread_in_use () ? sigprocmask (HOW, SET, OSET) : 0) # define glthread_join(THREAD, RETVALP) \ - (pthread_in_use () ? thr_join (THREAD, NULL, RETVALP) : 0) + (thread_in_use () ? thr_join (THREAD, NULL, RETVALP) : 0) # define gl_thread_self() \ - (pthread_in_use () ? (void *) thr_self () : 0) + (thread_in_use () ? (void *) thr_self () : 0) # define gl_thread_exit(RETVAL) \ - (pthread_in_use () ? thr_exit (RETVAL) : 0) + (thread_in_use () ? thr_exit (RETVAL) : 0) # define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) 0 # ifdef __cplusplus