From 2e78a15527ff0cd83888575cac94b690ffcca4d9 Mon Sep 17 00:00:00 2001 From: Karl Stenerud Date: Thu, 31 Aug 2023 11:27:48 +0300 Subject: [PATCH] Don't use syscall on osx --- Bugsnag/Helpers/BSGDefines.h | 2 +- Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_Jailbreak.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Bugsnag/Helpers/BSGDefines.h b/Bugsnag/Helpers/BSGDefines.h index cf60fb14e..25ac28bf2 100644 --- a/Bugsnag/Helpers/BSGDefines.h +++ b/Bugsnag/Helpers/BSGDefines.h @@ -19,7 +19,7 @@ #define BSG_HAVE_REACHABILITY_WWAN ( TARGET_OS_IOS || TARGET_OS_TV ) #define BSG_HAVE_SIGNAL (TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_TV ) #define BSG_HAVE_SIGALTSTACK (TARGET_OS_OSX || TARGET_OS_IOS ) -#define BSG_HAVE_SYSCALL (TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_TV ) +#define BSG_HAVE_SYSCALL (TARGET_OS_IOS || TARGET_OS_TV ) #define BSG_HAVE_UIDEVICE __has_include() #define BSG_HAVE_WINDOW (TARGET_OS_OSX || TARGET_OS_IOS || TARGET_OS_TV ) diff --git a/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_Jailbreak.h b/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_Jailbreak.h index 05e9cb7fe..f9f1b23ed 100644 --- a/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_Jailbreak.h +++ b/Bugsnag/KSCrash/Source/KSCrash/Recording/BSG_Jailbreak.h @@ -76,7 +76,7 @@ static inline bool bsg_local_is_insert_libraries_env_var(const char* str) { // - Use pointers for output parameters, with labels that identify them as such. // - Beware of global consts or defines bleeding through. -#if TARGET_CPU_ARM64 +#if TARGET_CPU_ARM64 && !TARGET_OS_OSX #define BSG_HAS_CUSTOM_SYSCALL 1 // ARM64 3-parameter syscall @@ -105,7 +105,7 @@ static inline bool bsg_local_is_insert_libraries_env_var(const char* str) { } \ } while(0) -#elif TARGET_CPU_X86_64 && defined(__GCC_ASM_FLAG_OUTPUTS__) +#elif TARGET_CPU_X86_64 && defined(__GCC_ASM_FLAG_OUTPUTS__) && !TARGET_OS_OSX #define BSG_HAS_CUSTOM_SYSCALL 1 // X86_64 3-parameter syscall