<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- node.h.orig	2008-07-07 15:17:24.000000000 +0900
+++ node.h	2008-11-06 00:53:06.000000000 +0900
@@ -375,9 +375,17 @@
 void rb_add_event_hook _((rb_event_hook_func_t,rb_event_t));
 int rb_remove_event_hook _((rb_event_hook_func_t));
 
-#if defined(HAVE_GETCONTEXT) &amp;&amp; defined(HAVE_SETCONTEXT)
-#include &lt;ucontext.h&gt;
-#define USE_CONTEXT
+#if defined(HAVE_GETCONTEXT) &amp;&amp; defined(HAVE_SETCONTEXT) 
+# if defined(__APPLE__)
+#   include &lt;AvailabilityMacros.h&gt;
+#   if MAC_OS_X_VERSION_MAX_ALLOWED &lt;= 1040
+#     include &lt;ucontext.h&gt;
+#     define USE_CONTEXT
+#   endif
+# else
+#   include &lt;ucontext.h&gt;
+#   define USE_CONTEXT
+# endif
 #endif
 #include &lt;setjmp.h&gt;
 #include "st.h"
</pre></body></html>