aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/threadimpl.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-05-01 18:38:12 +0000
committerrsc <devnull@localhost>2005-05-01 18:38:12 +0000
commitcea10000c59882b43525e4fd4fb17a55b7dba1c1 (patch)
tree63e81981a798e074e7de146e23c8e16eaf3a26dc /src/libthread/threadimpl.h
parente9ad899486adb4c561e682ced74ac0cb1c4539fc (diff)
downloadplan9port-cea10000c59882b43525e4fd4fb17a55b7dba1c1.tar.gz
plan9port-cea10000c59882b43525e4fd4fb17a55b7dba1c1.tar.bz2
plan9port-cea10000c59882b43525e4fd4fb17a55b7dba1c1.zip
OpenBSD/power support.
Diffstat (limited to 'src/libthread/threadimpl.h')
-rw-r--r--src/libthread/threadimpl.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
index 346288de..fff874d8 100644
--- a/src/libthread/threadimpl.h
+++ b/src/libthread/threadimpl.h
@@ -5,7 +5,9 @@
#include <sys/wait.h>
#include <sched.h>
#include <signal.h>
-#include <ucontext.h>
+#if !defined(_OpenBSD__)
+# include <ucontext.h>
+#endif
#include <sys/utsname.h>
#include "libc.h"
#include "thread.h"
@@ -22,7 +24,12 @@ extern void makecontext(ucontext_t*, void(*)(), int, ...);
# define mcontext_t libthread_mcontext_t
# define ucontext libthread_ucontext
# define ucontext_t libthread_ucontext_t
-# include "Darwin-ucontext.h"
+# include "power-ucontext.h"
+#endif
+
+#if defined(__OpenBSD__)
+# include "power-ucontext.h"
+extern pid_t rfork_thread(int, void*, int(*)(void*), void*);
#endif
typedef struct Context Context;