From: Bruno Haible Date: Mon, 18 Aug 2008 10:49:10 +0000 (+0200) Subject: Fix link error with Solaris threads. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e3f4935a331cbe1a92fa268f33e0b65dd3875ba;p=pspp Fix link error with Solaris threads. --- diff --git a/ChangeLog b/ChangeLog index bc8db383d8..84978c0ed5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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 . 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