Mercurial > gnulib
changeset 10338:03382fe4d739
Fix link error with Solaris threads.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 18 Aug 2008 12:49:10 +0200 |
parents | d2a9509e45db |
children | 1ce07f07b1f0 |
files | ChangeLog lib/glthread/thread.h |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Aug 18 12:44:48 2008 +0200 +++ b/ChangeLog Mon Aug 18 12:49:10 2008 +0200 @@ -1,3 +1,8 @@ +2008-08-18 Bruno Haible <bruno@clisp.org> + + * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not + pthread_in_use(). + 2008-08-18 Bruno Haible <bruno@clisp.org> * lib/glthread/threadlib.c: Include <pthread.h>.
--- a/lib/glthread/thread.h Mon Aug 18 12:44:48 2008 +0200 +++ b/lib/glthread/thread.h Mon Aug 18 12:49:10 2008 +0200 @@ -250,13 +250,13 @@ # 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