From bf14d12bd2057823a9ec3aa4303fb59dc1158879 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 1417f92a6..1f67c3063 100644 --- a/src/sys/unix/selector/kqueue.rs +++ b/src/sys/unix/selector/kqueue.rs @@ -527,6 +527,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",