From 23e762535f856435c422a1c97192d2bd08900b5e Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Wed, 14 Feb 2024 15:59:24 +0100 Subject: [PATCH] add HermitOS support for all examples --- examples/tcp_listenfd_server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tcp_listenfd_server.rs b/examples/tcp_listenfd_server.rs index 941d7f048..2b8b0c495 100644 --- a/examples/tcp_listenfd_server.rs +++ b/examples/tcp_listenfd_server.rs @@ -19,6 +19,8 @@ const DATA: &[u8] = b"Hello world!\n"; #[cfg(not(windows))] fn get_first_listen_fd_listener() -> Option { + #[cfg(target_os = "hermit")] + use std::os::hermit::io::FromRawFd; #[cfg(unix)] use std::os::unix::io::FromRawFd; #[cfg(target_os = "wasi")]