From faaf2fe1c82eb0997e642c175023fe74a8321d4f Mon Sep 17 00:00:00 2001 From: Mashijams Date: Sat, 19 Mar 2022 15:52:12 +0530 Subject: [PATCH] Fixes build error on MacOS This patch fixes build error caused due to HOST_HOOKS_INITIALIZER Change-Id: I2094a5258e0100bd027b6780a214e3869f56368e Reviewed-on: https://review.haiku-os.org/c/buildtools/+/5114 Reviewed-by: Adrien Destugues --- gcc/gcc/config/host-darwin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/gcc/config/host-darwin.c b/gcc/gcc/config/host-darwin.c index 0d26a76020..b621e7c48d 100644 --- a/gcc/gcc/config/host-darwin.c +++ b/gcc/gcc/config/host-darwin.c @@ -80,4 +80,6 @@ darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off) return ret; } +#if defined(__aarch64__) const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER; +#endif