Skip to content

Commit 2370ccc

Browse files
committed
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 <[email protected]>
1 parent 9aae303 commit 2370ccc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

collector/powersupplyclass_darwin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ package collector
1818

1919
/*
2020
#cgo LDFLAGS: -framework IOKit -framework CoreFoundation
21+
#include <CoreFoundation/CFNumber.h>
22+
#include <CoreFoundation/CFRunLoop.h>
23+
#include <CoreFoundation/CFString.h>
2124
#include <IOKit/ps/IOPowerSources.h>
2225
#include <IOKit/ps/IOPSKeys.h>
23-
#include <CoreFoundation/CFArray.h>
2426
2527
// values collected from IOKit Power Source APIs
2628
// Functions documentation available at

0 commit comments

Comments
 (0)