From 0ff2e0355d89ff1575cbc9b7afa8a89c8f895de4 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 18 Jun 2020 08:24:14 -0700 Subject: [PATCH] CLAMR: Fix build with newer glibc The sysctl.h header has been removed from glibc, so guard the include with #ifdef __APPLE_CC__ since the sysctl functions are only used if this macro is defined. --- MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/memstats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/memstats.c b/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/memstats.c index 12e400c..8be1503 100644 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/memstats.c +++ b/MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/memstats.c @@ -57,7 +57,9 @@ #include #include #include +#ifdef __APPLE_CC__ #include +#endif #include #include -- 1.8.3.1