Skip to content

Commit

Permalink
Add apple tvos support
Browse files Browse the repository at this point in the history
  • Loading branch information
lcruz99 committed Nov 8, 2023
1 parent 0ff4621 commit bbcee88
Show file tree
Hide file tree
Showing 41 changed files with 575 additions and 788 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ caps = "0.5.3"
[target.'cfg(target_os = "freebsd")'.dev-dependencies]
sysctl = "0.4"

[build-dependencies]
cfg_aliases = "0.1.1"

[[test]]
name = "test"
path = "test/test.rs"
Expand Down
11 changes: 11 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use cfg_aliases::cfg_aliases;

fn main() {
cfg_aliases! {
ios: { target_os = "ios" },
macos: { target_os = "macos" },
watchos: { target_os = "watchos" },
tvos: { target_os = "tvos" },
apple_targets: { any(ios, macos, watchos, tvos) },
}
}
3 changes: 1 addition & 2 deletions src/dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,9 @@ impl Entry {
target_os = "fuchsia",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
apple_targets,
target_os = "l4re",
target_os = "linux",
target_os = "macos",
target_os = "solaris"))] {
self.0.d_ino as u64
} else {
Expand Down
Loading

0 comments on commit bbcee88

Please sign in to comment.