mirror of git://gcc.gnu.org/git/gcc.git
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.
This commit is contained in:
parent
26ab97e0da
commit
c2553dd389
|
@ -139,9 +139,11 @@ typedef void (*dispatch_mach_handler_function_t)(void *context,
|
||||||
dispatch_mach_reason reason,
|
dispatch_mach_reason reason,
|
||||||
dispatch_mach_msg_t message,
|
dispatch_mach_msg_t message,
|
||||||
mach_error_t error);
|
mach_error_t error);
|
||||||
|
#if !defined(MISSING_BLOCKS_SUPPORT)
|
||||||
typedef void (^dispatch_mach_handler_t)(dispatch_mach_reason reason,
|
typedef void (^dispatch_mach_handler_t)(dispatch_mach_reason reason,
|
||||||
dispatch_mach_msg_t message,
|
dispatch_mach_msg_t message,
|
||||||
mach_error_t error);
|
mach_error_t error);
|
||||||
|
#endif
|
||||||
|
|
||||||
// A wrapper for the ObjC blocks used to support libdispatch.
|
// A wrapper for the ObjC blocks used to support libdispatch.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Reference in New Issue