From d54ead7fb922cfa661c7b7f0d0b2ba1251cdea7f Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Dec 2004 04:20:39 +0000 Subject: more freebsd work --- src/libthread/threadimpl.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/libthread/threadimpl.h') diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h index d4acebeb..32afa5fe 100644 --- a/src/libthread/threadimpl.h +++ b/src/libthread/threadimpl.h @@ -1,4 +1,20 @@ +#include "u.h" +#include +#include +#include +#include +#include +#include #include +#include "libc.h" +#include "thread.h" + +#if defined(__FreeBSD__) && !defined(__FreeBSD5__) +extern int getcontext(ucontext_t*); +extern void setcontext(ucontext_t*); +extern int swapcontext(ucontext_t*, ucontext_t*); +extern void makecontext(ucontext_t*, void(*)(), int, ...); +#endif typedef struct Context Context; typedef struct Execjob Execjob; -- cgit v1.2.3