From 062f7124f60493a3a81ec38ac46441e4b7e08de5 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Thu, 4 Jan 2024 15:02:11 -0800 Subject: [PATCH] Fixed arch_utilities.cc compilation for Linux. Availability.h and AvailabilityMacros.h are only available when compiling on Apple. Change-Id: I820c74a7fa15560c358366418a503b911dde3d86 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5171145 Reviewed-by: Ivan Penkov --- src/common/mac/arch_utilities.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/mac/arch_utilities.cc b/src/common/mac/arch_utilities.cc index 0afa6c46..cfa2e2d7 100644 --- a/src/common/mac/arch_utilities.cc +++ b/src/common/mac/arch_utilities.cc @@ -37,10 +37,11 @@ #include #include #include + +#ifdef __APPLE__ #include #include -#ifdef __APPLE__ #if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && defined(__IPHONE_16_0) && \ __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_16_0) || \ (defined(MAC_OS_X_VERSION_MIN_REQUIRED) && defined(MAC_OS_VERSION_13_0) && \