From c9aee3b399235384869f8363b0c4fcf60ceb329d Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Sun, 9 Jun 2024 18:41:32 +0200 Subject: [PATCH] Add set_reuseaddr for Hermit shell Was missing, but the code depends on it. --- src/sys/shell/tcp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/shell/tcp.rs b/src/sys/shell/tcp.rs index 260763aeb..b61a4ffc9 100644 --- a/src/sys/shell/tcp.rs +++ b/src/sys/shell/tcp.rs @@ -21,7 +21,7 @@ pub(crate) fn listen(_: &net::TcpListener, _: u32) -> io::Result<()> { os_required!(); } -#[cfg(unix)] +#[cfg(any(unix, target_os = "hermit"))] pub(crate) fn set_reuseaddr(_: &net::TcpListener, _: bool) -> io::Result<()> { os_required!(); }