Merge pull request #2327 from pjjw/pjjw/powersupplyclass-darwin-old-sdk-fixes
powersupplyclass_darwin: extra includes to build against older macOS SDK
This commit is contained in:
commit
b52bf958f8
|
@ -18,9 +18,11 @@ package collector
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo LDFLAGS: -framework IOKit -framework CoreFoundation
|
#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/IOPowerSources.h>
|
||||||
#include <IOKit/ps/IOPSKeys.h>
|
#include <IOKit/ps/IOPSKeys.h>
|
||||||
#include <CoreFoundation/CFArray.h>
|
|
||||||
|
|
||||||
// values collected from IOKit Power Source APIs
|
// values collected from IOKit Power Source APIs
|
||||||
// Functions documentation available at
|
// Functions documentation available at
|
||||||
|
|
Loading…
Reference in New Issue