Skip to content

Commit cbd365c

Browse files
committed
fix: import Dev and FileType on Apple targets
The use declarations for Dev and FileType were gated with cfg(not(apple)), causing compilation failures when mknodat became available on Apple. Remove apple from the exclusion list.
1 parent 0617d58 commit cbd365c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/backend/libc/fs/syscalls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ use crate::fs::StatFs;
5252
#[cfg(not(any(target_os = "espidf", target_os = "vita")))]
5353
use crate::fs::Timestamps;
5454
#[cfg(not(any(
55-
apple,
5655
target_os = "espidf",
5756
target_os = "redox",
5857
target_os = "vita",

src/fs/at.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use crate::fs::CloneFlags;
2020
use crate::fs::RenameFlags;
2121
#[cfg(not(target_os = "espidf"))]
2222
use crate::fs::Stat;
23-
#[cfg(not(any(apple, target_os = "espidf", target_os = "vita", target_os = "wasi")))]
23+
#[cfg(not(any(target_os = "espidf", target_os = "vita", target_os = "wasi")))]
2424
use crate::fs::{Dev, FileType};
2525
#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
2626
use crate::fs::{Gid, Uid};

0 commit comments

Comments
 (0)