From fda358a1ec010a59f37988a6c7d36bc180caa454 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Tue, 9 Nov 2021 17:52:49 +0100 Subject: [PATCH] Workaround LLVM/Clang 11.0 for Darwin builds (#2200) LLVM/Clang 11.0 adds a `-Wundef-prefix=TARGET_OS_` build flag which breaks this build flag. Signed-off-by: Ben Kochie --- collector/cpu_darwin.go | 1 + 1 file changed, 1 insertion(+) diff --git a/collector/cpu_darwin.go b/collector/cpu_darwin.go index 2a2b0062..6c461cc3 100644 --- a/collector/cpu_darwin.go +++ b/collector/cpu_darwin.go @@ -39,6 +39,7 @@ import ( #include #include #include +#include #if TARGET_OS_MAC #include #endif