]> git.pond.sub.org Git - empserver/commitdiff
LWP doesn't work with Darwin due to OS bugs, avoid it for now
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 7 Dec 2008 22:25:35 +0000 (17:25 -0500)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 7 Dec 2008 22:25:35 +0000 (17:25 -0500)
Darwin's getcontext() overruns its argument buffer.

m4/my_func_makecontext.m4

index 9327cee44cca16214229faa50345531e5b9bd58f..aa97803688885e7e7b5b56b21fe4ad29963bec87 100644 (file)
@@ -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,