Fix link error with Solaris threads.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Aug 2008 10:49:10 +0000 (12:49 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 18 Aug 2008 10:49:10 +0000 (12:49 +0200)
ChangeLog
lib/glthread/thread.h

index bc8db383d830ec21c38f8057e44d8440f2521b80..84978c0ed5a8514c59dce20f9f43f6799490b0df 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>.
index d88908e01567a8729ec2b58dc5af7fd33a695405..1a3b695fcf8a3c23bb95aeb832026a3b0d4a8fab 100644 (file)
@@ -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