Commit 3d0956d1 by Copybara-Service

Merge pull request #1217 from anpol:macos-sigaltstack

PiperOrigin-RevId: 460713135
Change-Id: If7ea94f409edc1e4024d7eaa4ae025b0b258fc02
parents e517aaf4 0565e00b
...@@ -50,7 +50,9 @@ ...@@ -50,7 +50,9 @@
#ifndef _WIN32 #ifndef _WIN32
#define ABSL_HAVE_SIGACTION #define ABSL_HAVE_SIGACTION
// Apple WatchOS and TVOS don't allow sigaltstack // Apple WatchOS and TVOS don't allow sigaltstack
#if !(defined(TARGET_OS_WATCH) && TARGET_OS_WATCH) && \ // Apple macOS has sigaltstack, but using it makes backtrace() unusable.
#if !(defined(TARGET_OS_OSX) && TARGET_OS_OSX) && \
!(defined(TARGET_OS_WATCH) && TARGET_OS_WATCH) && \
!(defined(TARGET_OS_TV) && TARGET_OS_TV) && !defined(__QNX__) !(defined(TARGET_OS_TV) && TARGET_OS_TV) && !defined(__QNX__)
#define ABSL_HAVE_SIGALTSTACK #define ABSL_HAVE_SIGALTSTACK
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment