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

View file

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