Skip to content

Commit

Permalink
Disable setdomainname on illumos and solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0iq committed Dec 18, 2024
1 parent 01ad8ac commit ebeb70e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/libc/system/syscalls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ pub(crate) fn sethostname(name: &[u8]) -> io::Result<()> {
target_os = "android",
target_os = "emscripten",
target_os = "espidf",
target_os = "illumos",
target_os = "haiku",
target_os = "redox",
target_os = "solaris",
target_os = "vita",
target_os = "wasi"
)))]
Expand Down
2 changes: 2 additions & 0 deletions src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ pub fn sethostname(name: &[u8]) -> io::Result<()> {
target_os = "emscripten",
target_os = "espidf",
target_os = "haiku",
target_os = "illumos",
target_os = "redox",
target_os = "solaris",
target_os = "vita",
target_os = "wasi"
)))]
Expand Down

0 comments on commit ebeb70e

Please sign in to comment.