summaryrefslogtreecommitdiff
path: root/mcon
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2012-11-11 00:15:40 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2012-11-11 00:15:40 +0000
commit252002667251d535456c3758ba204fbc52fa882b (patch)
tree85f2867ba892e3ffd0049423962b78617c06b21a /mcon
parent0cc141edfd2785c4c356fb7a18eaf4790452c211 (diff)
Updated checks on 'struct ucontext' to include <sys/ucontext.h> if necessary.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@155 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon')
-rw-r--r--mcon/U/d_uctx_mctx.U6
-rw-r--r--mcon/U/d_uctx_mctx_gregs.U6
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;