aboutsummaryrefslogtreecommitdiff
path: root/libsanitizer
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2023-11-17 12:46:09 +0100
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2023-11-18 09:49:27 +0100
commitc2553dd3891efc928a85d4852f1b69afed9c6325 (patch)
tree20f68898b0e6bd31e86c06ef81344fcc5c09b8f4 /libsanitizer
parent26ab97e0da5d99c23654d90428d26e22ef976309 (diff)
libsanitizer: fix build on darwin
Upstream report of the issue at https://github.com/llvm/llvm-project/issues/72639 libsanitizer/ChangeLog: * asan/asan_mac.cpp: Protect Apple blocks behind the MISSING_BLOCKS_SUPPORT macro.
Diffstat (limited to 'libsanitizer')
-rw-r--r--libsanitizer/asan/asan_mac.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsanitizer/asan/asan_mac.cpp b/libsanitizer/asan/asan_mac.cpp
index 5d5146e0cde..6252fa20d5e 100644
--- a/libsanitizer/asan/asan_mac.cpp
+++ b/libsanitizer/asan/asan_mac.cpp
@@ -139,9 +139,11 @@ typedef void (*dispatch_mach_handler_function_t)(void *context,
dispatch_mach_reason reason,
dispatch_mach_msg_t message,
mach_error_t error);
+#if !defined(MISSING_BLOCKS_SUPPORT)
typedef void (^dispatch_mach_handler_t)(dispatch_mach_reason reason,
dispatch_mach_msg_t message,
mach_error_t error);
+#endif
// A wrapper for the ObjC blocks used to support libdispatch.
typedef struct {