Fails to build on FreeBSD
Regressed by !92 (merged). Affects FreeBSD due to !56 (merged) and nix#2037.
Reverted downstream in order to avoid losing gamepad support in Veloren (tested under Sway). For upstream (here) it'd be nice to either stub next_event_blocking
on non-Linux or replace epoll
with an abstraction that also supports kqueue
.
error[E0432]: unresolved import `nix::sys::epoll`
--> gilrs-core/src/platform/linux/gamepad.rs:21:15
|
21 | use nix::sys::epoll::{EpollEvent, EpollFlags, EpollOp};
| ^^^^^ could not find `epoll` in `sys`
error[E0432]: unresolved import `nix::sys::eventfd`
--> gilrs-core/src/platform/linux/gamepad.rs:22:15
|
22 | use nix::sys::eventfd::EfdFlags;
| ^^^^^^^ could not find `eventfd` in `sys`
error[E0432]: unresolved imports `nix::sys::epoll`, `nix::sys::eventfd`
--> gilrs-core/src/platform/linux/gamepad.rs:23:16
|
23 | use nix::sys::{epoll, eventfd};
| ^^^^^ ^^^^^^^
| | |
| | no `eventfd` in `sys`
| | help: a similar name exists in the module: `event`
| no `epoll` in `sys`
|
note: found an item that was configured out
--> /home/foo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.26.4/src/sys/mod.rs:20:13
|
20 | pub mod epoll;
| ^^^^^
note: found an item that was configured out
--> /home/foo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nix-0.26.4/src/sys/mod.rs:33:13
|
33 | pub mod eventfd;
| ^^^^^^^
For more information about this error, try `rustc --explain E0432`.
error: could not compile `gilrs-core` (lib) due to 3 previous errors