From 704ef29f4f4ab114724cc7d4280f989d58e82198 Mon Sep 17 00:00:00 2001 From: Richard Cooper Date: Wed, 24 Mar 2021 10:49:04 +0000 Subject: [PATCH] arch-arm: Fix for build error in recent MacOS 11. On a recent version of MacOS 11, the build fails due to the missing sysctl.h include. Updated the preprocessor macros to include this file for __APPLE__ builds. Change-Id: I985d6c2ea97b82b32750bb562b2051f87d6c2e65 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47760 Reviewed-by: Nikos Nikoleris Reviewed-by: Bobby R. Bruce Maintainer: Bobby R. Bruce Tested-by: kokoro --- src/arch/arm/freebsd/se_workload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/arm/freebsd/se_workload.cc b/src/arch/arm/freebsd/se_workload.cc index d478b59d76..6a4a62df84 100644 --- a/src/arch/arm/freebsd/se_workload.cc +++ b/src/arch/arm/freebsd/se_workload.cc @@ -34,7 +34,7 @@ #include "arch/arm/freebsd/se_workload.hh" #include -#if !defined ( __GNU_LIBRARY__ ) && defined(__FreeBSD__) +#if !defined( __GNU_LIBRARY__ ) && (defined(__FreeBSD__) || defined(__APPLE__)) #include #endif