Skip to content

Commit 771978c

Browse files
committed
Support Hermit without cfg flags
1 parent 0ba4e90 commit 771978c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/poll.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(all(
22
unix,
33
not(mio_unsupported_force_poll_poll),
4-
not(any(target_os = "espidf", target_os = "solaris", target_os = "vita")),
4+
not(any(target_os = "espidf", target_os = "hermit", target_os = "solaris", target_os = "vita")),
55
))]
66
use std::os::unix::io::{AsRawFd, RawFd};
77
#[cfg(all(debug_assertions, not(target_os = "wasi")))]
@@ -430,7 +430,7 @@ impl Poll {
430430
#[cfg(all(
431431
unix,
432432
not(mio_unsupported_force_poll_poll),
433-
not(any(target_os = "espidf", target_os = "solaris", target_os = "vita")),
433+
not(any(target_os = "espidf", target_os = "hermit", target_os = "solaris", target_os = "vita")),
434434
))]
435435
impl AsRawFd for Poll {
436436
fn as_raw_fd(&self) -> RawFd {
@@ -721,7 +721,7 @@ impl fmt::Debug for Registry {
721721
#[cfg(all(
722722
unix,
723723
not(mio_unsupported_force_poll_poll),
724-
not(any(target_os = "espidf", target_os = "solaris", target_os = "vita")),
724+
not(any(target_os = "espidf", target_os = "hermit", target_os = "solaris", target_os = "vita")),
725725
))]
726726
impl AsRawFd for Registry {
727727
fn as_raw_fd(&self) -> RawFd {
@@ -733,7 +733,7 @@ cfg_os_poll! {
733733
#[cfg(all(
734734
unix,
735735
not(mio_unsupported_force_poll_poll),
736-
not(any(target_os = "espidf", target_os = "solaris", target_os = "vita")),
736+
not(any(target_os = "espidf", target_os = "hermit", target_os = "solaris", target_os = "vita")),
737737
))]
738738
#[test]
739739
pub fn as_raw_fd() {

src/sys/unix/waker.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,12 @@ mod eventfd {
154154
any(
155155
target_os = "android",
156156
target_os = "espidf",
157+
target_os = "hermit",
157158
target_os = "linux",
158159
)
159160
))]
160161
pub(crate) use self::eventfd::WakerInternal;
161162

162-
#[cfg(target_os = "hermit")]
163-
pub(crate) use self::eventfd::WakerInternal;
164-
165163
#[cfg(all(
166164
not(mio_unsupported_force_waker_pipe),
167165
any(

0 commit comments

Comments
 (0)