summaryrefslogtreecommitdiff
path: root/Xthreads.h
diff options
context:
space:
mode:
Diffstat (limited to 'Xthreads.h')
-rw-r--r--Xthreads.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Xthreads.h b/Xthreads.h
index c1cb765..54b5440 100644
--- a/Xthreads.h
+++ b/Xthreads.h
@@ -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)