diff --git a/src/backend/libc/system/syscalls.rs b/src/backend/libc/system/syscalls.rs index 0c5b0f7d5..af115b765 100644 --- a/src/backend/libc/system/syscalls.rs +++ b/src/backend/libc/system/syscalls.rs @@ -67,6 +67,7 @@ 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 = "vita", diff --git a/src/system.rs b/src/system.rs index 6d97158c0..bddb16c69 100644 --- a/src/system.rs +++ b/src/system.rs @@ -180,6 +180,7 @@ pub fn sethostname(name: &[u8]) -> io::Result<()> { target_os = "emscripten", target_os = "espidf", target_os = "haiku", + target_os = "illumos", target_os = "redox", target_os = "vita", target_os = "wasi"