From d11a12c7aeecfa34da2411a9838732aa3ee028e3 Mon Sep 17 00:00:00 2001 From: Thorsten Claus Date: Sat, 11 Mar 2023 18:31:28 +0100 Subject: [PATCH] Fixes build error under MacOS Fixes the error: use of undeclared identifier 'HOST_HOOKS_INITIALIZER' on Apple with M1 (silicon) chip Fixes #17457 Change-Id: Id3b550c0d875d521539923ab7ecac0006715b7d6 Reviewed-on: https://review.haiku-os.org/c/buildtools/+/6191 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 b621e7c48d..59cfb8f8ae 100644 --- a/gcc/gcc/config/host-darwin.c +++ b/gcc/gcc/config/host-darwin.c @@ -22,6 +22,8 @@ #include "coretypes.h" #include "diagnostic-core.h" #include "config/host-darwin.h" +#include "hosthooks.h" +#include "hosthooks-def.h" /* Yes, this is really supposed to work. */ /* This allows for a pagesize of 16384, which we have on Darwin20, but should