From 8b948a2d6852023eb41eed3a99e9b402da3f5fbe Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 15 Mar 2026 18:27:42 -0400 Subject: [PATCH] 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) --- lib/crates/fabro-beastie/src/iokit_bindings.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/crates/fabro-beastie/src/iokit_bindings.rs b/lib/crates/fabro-beastie/src/iokit_bindings.rs index 98f33de9e..4fb6ced67 100644 --- a/lib/crates/fabro-beastie/src/iokit_bindings.rs +++ b/lib/crates/fabro-beastie/src/iokit_bindings.rs @@ -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,