summaryrefslogtreecommitdiff
path: root/mcon/U/d_uctx_mctx.U
diff options
context:
space:
mode:
Diffstat (limited to 'mcon/U/d_uctx_mctx.U')
-rw-r--r--mcon/U/d_uctx_mctx.U6
1 files changed, 5 insertions, 1 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;