From 2370cccc1f86ba8a98f8a325bd02e3316e159609 Mon Sep 17 00:00:00 2001 From: Peter Woodman Date: Wed, 23 Mar 2022 22:35:15 -0400 Subject: [PATCH] powersupplyclass_darwin: enable builds against older macOS SDK This is necessary to build on darwin using nix, as nix-darwin uses an older macOS SDK, built from Apple's open source releases. Signed-off-by: Peter Woodman --- collector/powersupplyclass_darwin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/collector/powersupplyclass_darwin.go b/collector/powersupplyclass_darwin.go index a070f64d..01d7f184 100644 --- a/collector/powersupplyclass_darwin.go +++ b/collector/powersupplyclass_darwin.go @@ -18,9 +18,11 @@ package collector /* #cgo LDFLAGS: -framework IOKit -framework CoreFoundation +#include +#include +#include #include #include -#include // values collected from IOKit Power Source APIs // Functions documentation available at