Files

23 lines
931 B
Diff
Raw Permalink Normal View History

2020-09-28 05:46:18 -07:00
--- ./signal.c.orig 2015-11-23 16:17:11.000000000 -0800
+++ ./signal.c 2020-08-27 15:24:31.000000000 -0700
@@ -760,7 +760,7 @@ NORETURN(void ruby_thread_stack_overflow
# elif !(defined(HAVE_UCONTEXT_H) && (defined __i386__ || defined __x86_64__ || defined __amd64__))
# elif defined __linux__
# define USE_UCONTEXT_REG 1
-# elif defined __APPLE__
+# elif defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
# define USE_UCONTEXT_REG 1
# elif defined __FreeBSD__
# define USE_UCONTEXT_REG 1
--- ./vm_dump.c.orig 2018-03-18 07:27:12.000000000 -0700
+++ ./vm_dump.c 2020-08-27 15:24:31.000000000 -0700
@@ -919,7 +919,7 @@ rb_dump_machine_register(const ucontext_
dump_machine_register(SS);
# endif
}
-# elif defined __APPLE__
+# elif defined(__APPLE__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
{
const mcontext_t mctx = ctx->uc_mcontext;
# if defined __x86_64__