topenbsd - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 04084d4e1d1b81f913c1e0c5b6655d6e84c29bae
 (DIR) parent 0f196d0380f910d68717590f866f64475719c9be
 (HTM) Author: rsc <devnull@localhost>
       Date:   Thu, 21 Jul 2005 18:59:12 +0000
       
       openbsd
       
       Diffstat:
         M include/libc.h                      |       2 +-
         M include/u.h                         |       2 --
         M src/lib9/sleep.c                    |       2 +-
       
       3 files changed, 2 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/include/libc.h b/include/libc.h
       t@@ -832,7 +832,7 @@ extern        int        post9pservice(int, char*);
        #        endif
        #endif
        
       -#if defined(__OpenBSD__) && !defined(NOPLAN9DEFINES)
       +#if defined(__OpenBSD__)
        #define sched_yield() \
                do { \
                        struct timespec ts; \
 (DIR) diff --git a/include/u.h b/include/u.h
       t@@ -95,11 +95,9 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
        #        undef _NEEDULONG
        #elif defined(__OpenBSD__)
        #        include <sys/types.h>
       -#        include <pthread.h>
        #        undef _NEEDUSHORT
        #        undef _NEEDUINT
        #        undef _NEEDULONG
       -#        define PLAN9PORT_USING_PTHREADS 1
        #else
                /* No idea what system this is -- try some defaults */
        #        include <pthread.h>
 (DIR) diff --git a/src/lib9/sleep.c b/src/lib9/sleep.c
       t@@ -1,8 +1,8 @@
        #include <u.h>
        #define NOPLAN9DEFINES
       -#include <libc.h>
        #include <sys/time.h>
        #include <sched.h>
       +#include <libc.h>
        
        int
        p9sleep(long milli)