From 8c3ac998c9789dfe8d472c9e5d157a5a90b43cca Mon Sep 17 00:00:00 2001 From: Yuki Sireneva Date: Wed, 18 Dec 2024 21:19:14 +0300 Subject: [PATCH] Disable setdomainname on illumos --- src/backend/libc/system/syscalls.rs | 1 + src/system.rs | 1 + 2 files changed, 2 insertions(+) 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"