diff options
Diffstat (limited to 'mcon/U')
-rw-r--r-- | mcon/U/d_uctx_mctx.U | 6 | ||||
-rw-r--r-- | mcon/U/d_uctx_mctx_gregs.U | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/mcon/U/d_uctx_mctx.U b/mcon/U/d_uctx_mctx.U index c6e82e7..565ae2f 100644 --- a/mcon/U/d_uctx_mctx.U +++ b/mcon/U/d_uctx_mctx.U @@ -7,7 +7,7 @@ ?RCS: that same Artistic Licence; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: -?MAKE:d_uctx_mctx: Trylink cat i_ucontext +?MAKE:d_uctx_mctx: Trylink cat i_ucontext i_sys_ucontext ?MAKE: -pick add $@ %< ?S:d_uctx_mctx: ?S: This variable conditionally defines the HAS_UCONTEXT_MCONTEXT symbol, @@ -25,9 +25,13 @@ : check for machine context field in the ucontext structure $cat >try.c <<EOC #$i_ucontext I_UCONTEXT +#$i_sys_ucontext I_SYS_UCONTEXT #ifdef I_UCONTEXT #include <ucontext.h> #endif +#ifdef I_SYS_UCONTEXT +#include <sys/ucontext.h> +#endif int main(void) { static ucontext_t *uc = 0; diff --git a/mcon/U/d_uctx_mctx_gregs.U b/mcon/U/d_uctx_mctx_gregs.U index d11fa98..f1525ca 100644 --- a/mcon/U/d_uctx_mctx_gregs.U +++ b/mcon/U/d_uctx_mctx_gregs.U @@ -7,7 +7,7 @@ ?RCS: that same Artistic Licence; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: -?MAKE:d_uctx_mctx_gregs: Trylink cat i_ucontext +?MAKE:d_uctx_mctx_gregs: Trylink cat i_ucontext i_sys_ucontext ?MAKE: -pick add $@ %< ?S:d_uctx_mctx_gregs: ?S: This variable conditionally defines the HAS_UCONTEXT_MCONTEXT_GREGS symbol, @@ -25,9 +25,13 @@ : check for general register access through the ucontext structure $cat >try.c <<EOC #$i_ucontext I_UCONTEXT +#$i_sys_ucontext I_SYS_UCONTEXT #ifdef I_UCONTEXT #include <ucontext.h> #endif +#ifdef I_SYS_UCONTEXT +#include <sys/ucontext.h> +#endif int main(void) { static ucontext_t uc; |