summaryrefslogtreecommitdiff
path: root/Xthreads.h
diff options
context:
space:
mode:
authorKean Johnson <kean@armory.com>2005-11-08 06:33:25 +0000
committerKean Johnson <kean@armory.com>2005-11-08 06:33:25 +0000
commit448763bde4a31cb012ad17cd6c5159411102432b (patch)
tree8c76f983df87ad2f661c10143829095f25c101e5 /Xthreads.h
parent59a5a5ebb6781d417d7a4d5905999da5fc76a083 (diff)
See ChangeLog entry 2005-11-07 for details.
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)