--- ./dln.c.orig 2020-03-31 05:15:56.000000000 -0700 +++ ./dln.c 2020-08-29 18:03:26.000000000 -0700 @@ -1333,8 +1333,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 05:15:56.000000000 -0700 +++ ./error.c 2020-08-29 18:03:26.000000000 -0700 @@ -458,7 +458,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 @@ -483,7 +483,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"