Skip to content

Commit b52bf95

Browse files
authored
Merge pull request prometheus#2327 from pjjw/pjjw/powersupplyclass-darwin-old-sdk-fixes
powersupplyclass_darwin: extra includes to build against older macOS SDK
2 parents aa3bce3 + 2370ccc commit b52bf95

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)