libthread: rm FreeBSD 4 code
Pretty sure FreeBSD 4 is gone now. :-)
This commit is contained in:
parent
d15607b9dd
commit
8dcb18f71b
7 changed files with 54 additions and 504 deletions
|
|
@ -15,15 +15,6 @@
|
|||
#include "libc.h"
|
||||
#include "thread.h"
|
||||
|
||||
#if defined(__FreeBSD__) && __FreeBSD__ < 5
|
||||
extern int getmcontext(mcontext_t*);
|
||||
extern void setmcontext(mcontext_t*);
|
||||
#define setcontext(u) setmcontext(&(u)->uc_mcontext)
|
||||
#define getcontext(u) getmcontext(&(u)->uc_mcontext)
|
||||
extern int swapcontext(ucontext_t*, ucontext_t*);
|
||||
extern void makecontext(ucontext_t*, void(*)(), int, ...);
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
/*
|
||||
* OS X before 10.5 (Leopard) does not provide
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue