diff --git a/src/ffi.rs b/src/ffi.rs index 91dad6f..4b7ac71 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -25,9 +25,9 @@ pub type dispatch_time_t = u64; // dispatch_io_interval_flags_t pub type dispatch_queue_attr_t = *const dispatch_object_s; -#[cfg_attr(any(target_os = "macos", target_os = "ios"), +#[cfg_attr(target_vendor = "apple", link(name = "System", kind = "dylib"))] -#[cfg_attr(not(any(target_os = "macos", target_os = "ios")), +#[cfg_attr(not(target_vendor = "apple"), link(name = "dispatch", kind = "dylib"))] extern { static _dispatch_main_q: dispatch_object_s;