Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -708,3 +708,6 @@ strip = true
inherits = "release"
panic = "unwind"
debug = true

[patch.crates-io]
hostname = { git = "https://github.com/xtqqczze/djc-hostname.git", branch = "target-aix" }
2 changes: 1 addition & 1 deletion src/uu/hostname/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/hostname.rs"
test = false
doctest = false

[target.'cfg(any(all(unix, not(any(target_os = "aix", target_os = "redox"))), windows))'.dependencies]
[target.'cfg(any(all(unix, not(target_os = "redox")), windows))'.dependencies]
clap = { workspace = true }
hostname = { workspace = true, features = ["set"] }
uucore = { workspace = true, features = ["wide"] }
Expand Down
2 changes: 1 addition & 1 deletion src/uu/hostname/benches/hostname_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//!
//! Without NSS_WRAPPER, the benchmark tests with the system's real /etc/hosts.

#![cfg(any(all(unix, not(any(target_os = "aix", target_os = "redox"))), windows))]
#![cfg(any(all(unix, not(target_os = "redox")), windows))]

use divan::{Bencher, black_box};
use std::io::Write;
Expand Down
2 changes: 1 addition & 1 deletion src/uu/hostname/src/hostname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// spell-checker:ignore hashset Addrs addrs

#![cfg(any(all(unix, not(any(target_os = "aix", target_os = "redox"))), windows))]
#![cfg(any(all(unix, not(target_os = "redox")), windows))]

use std::io::{Write, stdout};
use std::net::ToSocketAddrs;
Expand Down