From 252002667251d535456c3758ba204fbc52fa882b Mon Sep 17 00:00:00 2001 From: rmanfredi Date: Sun, 11 Nov 2012 00:15:40 +0000 Subject: Updated checks on 'struct ucontext' to include if necessary. git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@155 2592e710-e01b-42a5-8df0-11608a6cc53d --- mcon/U/d_uctx_mctx.U | 6 +++++- mcon/U/d_uctx_mctx_gregs.U | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'mcon/U') 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 < #endif +#ifdef I_SYS_UCONTEXT +#include +#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 < #endif +#ifdef I_SYS_UCONTEXT +#include +#endif int main(void) { static ucontext_t uc; -- cgit v1.2.3