diff options
author | Bruno Haible <bruno@clisp.org> | 2008-08-18 12:49:10 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-08-18 12:49:10 +0200 |
commit | 0e3f4935a331cbe1a92fa268f33e0b65dd3875ba (patch) | |
tree | 434ab1a89920491ec77ae992534a861279ff50ca | |
parent | d512dd3ac457244139f0e382d7e032183610a403 (diff) | |
download | gnulib-0e3f4935a331cbe1a92fa268f33e0b65dd3875ba.tar.gz |
Fix link error with Solaris threads.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/glthread/thread.h | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,5 +1,10 @@ 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>. 2008-08-18 Bruno Haible <bruno@clisp.org> diff --git a/lib/glthread/thread.h b/lib/glthread/thread.h index d88908e015..1a3b695fcf 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 |