Skip to content

Commit c379d1a

Browse files
committed
Add EV_DISPATCH and EV_RECEIPT EventFlag items for OpenBSD.
1 parent d950c48 commit c379d1a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/sys/event.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,9 @@ libc_bitflags!{
9090
EV_CLEAR;
9191
EV_DELETE;
9292
EV_DISABLE;
93-
// No released version of OpenBSD supports EV_DISPATCH or EV_RECEIPT.
94-
// These have been commited to the -current branch though and are
95-
// expected to be part of the OpenBSD 6.2 release in Nov 2017.
96-
// See: https://marc.info/?l=openbsd-tech&m=149621427511219&w=2
97-
// https://github.com/rust-lang/libc/pull/613
9893
#[cfg(any(target_os = "dragonfly", target_os = "freebsd",
9994
target_os = "ios", target_os = "macos",
100-
target_os = "netbsd"))]
95+
target_os = "netbsd", target_os = "openbsd"))]
10196
EV_DISPATCH;
10297
#[cfg(target_os = "freebsd")]
10398
EV_DROP;
@@ -116,7 +111,7 @@ libc_bitflags!{
116111
EV_POLL;
117112
#[cfg(any(target_os = "dragonfly", target_os = "freebsd",
118113
target_os = "ios", target_os = "macos",
119-
target_os = "netbsd"))]
114+
target_os = "netbsd", target_os = "openbsd"))]
120115
EV_RECEIPT;
121116
EV_SYSFLAGS;
122117
}

0 commit comments

Comments
 (0)