diff --git a/sys_util/src/poll.rs b/sys_util/src/poll.rs index d8ea45d877..96ab22d921 100644 --- a/sys_util/src/poll.rs +++ b/sys_util/src/poll.rs @@ -55,6 +55,12 @@ unsafe impl Pollable for UnixDatagram { } } +unsafe impl Pollable for File { + fn pollable_fd(&self) -> RawFd { + self.as_raw_fd() + } +} + /// Used to poll multiple `Pollable` objects at once. /// /// # Example