Skip to content

Commit

Permalink
add HermitOS support for all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Feb 14, 2024
1 parent 98cd0d9 commit 23e7625
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/tcp_listenfd_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const DATA: &[u8] = b"Hello world!\n";

#[cfg(not(windows))]
fn get_first_listen_fd_listener() -> Option<std::net::TcpListener> {
#[cfg(target_os = "hermit")]
use std::os::hermit::io::FromRawFd;
#[cfg(unix)]
use std::os::unix::io::FromRawFd;
#[cfg(target_os = "wasi")]
Expand Down

0 comments on commit 23e7625

Please sign in to comment.