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 <peter@shortbus.org>
This commit is contained in:
parent
9aae303a46
commit
2370cccc1f
|
@ -18,9 +18,11 @@ package collector
|
|||
|
||||
/*
|
||||
#cgo LDFLAGS: -framework IOKit -framework CoreFoundation
|
||||
#include <CoreFoundation/CFNumber.h>
|
||||
#include <CoreFoundation/CFRunLoop.h>
|
||||
#include <CoreFoundation/CFString.h>
|
||||
#include <IOKit/ps/IOPowerSources.h>
|
||||
#include <IOKit/ps/IOPSKeys.h>
|
||||
#include <CoreFoundation/CFArray.h>
|
||||
|
||||
// values collected from IOKit Power Source APIs
|
||||
// Functions documentation available at
|
||||
|
|
Loading…
Reference in New Issue