From 71bf352af2c312748cefeb1f71c3f6c5fd7983e2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 2 Mar 2020 13:51:39 +0100 Subject: [PATCH] Use mach-o/dyld.h on osx. --- libbacktrace/config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libbacktrace/config.h b/libbacktrace/config.h index 7ab5a937..aa3259d1 100644 --- a/libbacktrace/config.h +++ b/libbacktrace/config.h @@ -14,7 +14,9 @@ #define HAVE_ATOMIC_FUNCTIONS 1 #define HAVE_DECL_STRNLEN 1 -#ifdef BSD +#ifdef __APPLE__ +# define HAVE_MACH_O_DYLD_H 1 +#elif defined BSD # define HAVE_KERN_PROC 1 # define HAVE_KERN_PROC_ARGS 1 #endif