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 9d654ebc8c4824a46483e0d5cf37a3e0181fe552
 (DIR) parent 1041ea6f68276d65c3426df3ee3a6c5a396ab704
 (HTM) Author: rsc <devnull@localhost>
       Date:   Tue, 19 Jul 2005 11:43:12 +0000
       
       openbsd
       
       Diffstat:
         M src/libthread/threadimpl.h          |       8 ++++++--
       
       1 file changed, 6 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/libthread/threadimpl.h b/src/libthread/threadimpl.h
       t@@ -5,7 +5,7 @@
        #include <sys/wait.h>
        #include <sched.h>
        #include <signal.h>
       -#if !defined(_OpenBSD__)
       +#if !defined(__OpenBSD__)
        #        include <ucontext.h>
        #endif
        #include <sys/utsname.h>
       t@@ -28,7 +28,11 @@ extern        void                makecontext(ucontext_t*, void(*)(), int, ...);
        #endif
        
        #if defined(__OpenBSD__)
       -#        include "power-ucontext.h"
       +#        if defined __i386__
       +#                include "386-ucontext.h"
       +#        else
       +#                include "power-ucontext.h"
       +#        endif
        extern pid_t rfork_thread(int, void*, int(*)(void*), void*);
        #endif