Skip to content

Commit c1ffefa

Browse files
committed
Remove eventfd feature in favor of conditional include
1 parent f8406b8 commit c1ffefa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ exclude = [
1616
]
1717

1818
[features]
19-
eventfd = []
2019
execvpe = []
2120
preadv_pwritev = []
2221
signalfd = []

src/sys/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ pub mod epoll;
99
target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd"))]
1010
pub mod event;
1111

12-
// TODO: switch from feature flags to conditional builds
13-
#[cfg(feature = "eventfd")]
12+
#[cfg(target_os = "linux")]
1413
pub mod eventfd;
1514

1615
#[cfg(target_os = "linux")]

0 commit comments

Comments
 (0)