Idevice::from_fd only on unix

This commit is contained in:
Jackson Coxson
2025-10-23 09:52:51 -06:00
parent a297eed156
commit 20f00e38dd
3 changed files with 5 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ pub unsafe extern "C" fn idevice_new(
/// # Safety
/// The socket FD must be valid.
/// The pointers must be valid and non-null.
#[cfg(unix)]
#[unsafe(no_mangle)]
pub unsafe extern "C" fn idevice_from_fd(
fd: i32,