From 424f7d4524ecab2e7f3a13edced84c2824409bcf Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Sun, 9 Jun 2024 18:03:42 +0200 Subject: [PATCH] Dont use EV_SYSFLAGS on OpenBSD It's stable across OS versions. --- src/sys/unix/selector/kqueue.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sys/unix/selector/kqueue.rs b/src/sys/unix/selector/kqueue.rs index 736510214..36c04212c 100644 --- a/src/sys/unix/selector/kqueue.rs +++ b/src/sys/unix/selector/kqueue.rs @@ -539,6 +539,8 @@ pub mod event { libc::EV_FLAG1, libc::EV_ERROR, libc::EV_EOF, + // Not stable across OS versions on OpenBSD. + #[cfg(not(target_os = "openbsd"))] libc::EV_SYSFLAGS, #[cfg(any( target_os = "ios",