--- ./dln.c.orig 2020-03-31 04:42:18.000000000 -0700 +++ ./dln.c 2020-08-29 16:46:40.000000000 -0700 @@ -1334,8 +1334,7 @@ dln_load(const char *file) if (ex && ex != ruby_xmalloc) { # if defined __APPLE__ && \ - defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \ - (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11) + __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101100 /* dlclose() segfaults */ rb_fatal("%s - %s", incompatible, file); # else --- ./error.c.orig 2020-03-31 04:42:18.000000000 -0700 +++ ./error.c 2020-08-29 16:48:42.000000000 -0700 @@ -379,7 +379,7 @@ preface_dump(FILE *out) "-- Crash Report log information " "--------------------------------------------\n" " See Crash Report log file under the one of following:\n" -# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 +# if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 " * ~/Library/Logs/CrashReporter\n" " * /Library/Logs/CrashReporter\n" # endif @@ -404,7 +404,7 @@ postscript_dump(FILE *out) "[IMPORTANT]" /*" ------------------------------------------------"*/ "\n""Don't forget to include the Crash Report log file under\n" -# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 +# if MAC_OS_X_VERSION_MIN_REQUIRED < 1060 "CrashReporter or " # endif "DiagnosticReports directory in bug reports.\n"