diff options
Diffstat (limited to 'Xthreads.h')
-rw-r--r-- | Xthreads.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -70,7 +70,12 @@ typedef thread_t xthread_t; typedef thread_key_t xthread_key_t; typedef cond_t xcondition_rec; typedef mutex_t xmutex_rec; +#if defined(__UNIXWARE__) +extern xthread_t (*_x11_thr_self)(); +#define xthread_self (_x11_thr_self) +#else #define xthread_self thr_self +#endif #define xthread_fork(func,closure) thr_create(NULL,0,func,closure,THR_NEW_LWP|THR_DETACHED,NULL) #define xthread_yield() thr_yield() #define xthread_exit(v) thr_exit(v) |