openbsd
This commit is contained in:
parent
0f196d0380
commit
04084d4e1d
3 changed files with 2 additions and 4 deletions
|
|
@ -832,7 +832,7 @@ extern int post9pservice(int, char*);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__OpenBSD__) && !defined(NOPLAN9DEFINES)
|
#if defined(__OpenBSD__)
|
||||||
#define sched_yield() \
|
#define sched_yield() \
|
||||||
do { \
|
do { \
|
||||||
struct timespec ts; \
|
struct timespec ts; \
|
||||||
|
|
|
||||||
|
|
@ -95,11 +95,9 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
|
||||||
# undef _NEEDULONG
|
# undef _NEEDULONG
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__)
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <pthread.h>
|
|
||||||
# undef _NEEDUSHORT
|
# undef _NEEDUSHORT
|
||||||
# undef _NEEDUINT
|
# undef _NEEDUINT
|
||||||
# undef _NEEDULONG
|
# undef _NEEDULONG
|
||||||
# define PLAN9PORT_USING_PTHREADS 1
|
|
||||||
#else
|
#else
|
||||||
/* No idea what system this is -- try some defaults */
|
/* No idea what system this is -- try some defaults */
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
#define NOPLAN9DEFINES
|
#define NOPLAN9DEFINES
|
||||||
#include <libc.h>
|
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sched.h>
|
#include <sched.h>
|
||||||
|
#include <libc.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
p9sleep(long milli)
|
p9sleep(long milli)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue