mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-06 02:48:25 +00:00
Fix fabro-beastie linker error by linking IOKit framework
The extern block declaring IOPMAssertionCreateWithName and IOPMAssertionRelease was missing the #[link] attribute, causing undefined symbol errors on macOS. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
43f5fb0edb
commit
8b948a2d68
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ pub const kIOPMAssertionIDInvalid: IOPMAssertionID = 0;
|
|||
pub type IOReturn = i32;
|
||||
pub const kIOReturnSuccess: IOReturn = 0;
|
||||
|
||||
#[link(name = "IOKit", kind = "framework")]
|
||||
extern "C" {
|
||||
pub fn IOPMAssertionCreateWithName(
|
||||
assertion_type: core_foundation::string::CFStringRef,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue