--- programs/fileio.c.orig	2021-12-20 16:49:18.000000000 -0600
+++ programs/fileio.c	2021-12-22 02:31:01.000000000 -0600
@@ -173,7 +173,7 @@
 #if !defined(BACKTRACE_ENABLE)
 /* automatic detector : backtrace enabled by default on linux+glibc and osx */
 #  if (defined(__linux__) && (defined(__GLIBC__) && !defined(__UCLIBC__))) \
-     || (defined(__APPLE__) && defined(__MACH__))
+     || (defined(__APPLE__) && defined(__MACH__)) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050)
 #    define BACKTRACE_ENABLE 1
 #  else
 #    define BACKTRACE_ENABLE 0
