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:
Ben Kochie 2022-03-30 12:08:52 +02:00 committed by GitHub
commit b52bf958f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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