From 2454304dde6115d3d2bc66cf75c91b85edd86261 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 7 Dec 2008 17:25:35 -0500 Subject: [PATCH] LWP doesn't work with Darwin due to OS bugs, avoid it for now Darwin's getcontext() overruns its argument buffer. --- m4/my_func_makecontext.m4 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/m4/my_func_makecontext.m4 b/m4/my_func_makecontext.m4 index 9327cee4..aa978036 100644 --- a/m4/my_func_makecontext.m4 +++ b/m4/my_func_makecontext.m4 @@ -1,7 +1,14 @@ AC_DEFUN([MY_FUNC_MAKECONTEXT], [ AC_REQUIRE([AC_CANONICAL_HOST]) - AC_CHECK_FUNCS(makecontext) + case "$host_os" in + *darwin*) + # ucontext appears to be broken, avoid it for now + ac_cv_func_makecontext=no + ;; + *) + AC_CHECK_FUNCS(makecontext) + esac case "$host_os" in *irix*|*solaris2.?) AC_DEFINE([MAKECONTEXT_SP_HIGH], 1,