Skip to content

Commit 20ce7a1

Browse files
committed
Prefer whitelisted targets instead of blacklisted
1 parent 8225387 commit 20ce7a1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/sys/event.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ libc_bitflags!{
8989
EV_CLEAR,
9090
EV_DELETE,
9191
EV_DISABLE,
92-
#[cfg(not(target_os = "openbsd"))]
92+
// No released version of OpenBSD supports EV_DISPATCH or EV_RECEIPT.
93+
// These have been commited to the -current branch though and are
94+
// expected to be part of the OpenBSD 6.2 release in Nov 2017.
95+
// See: https://marc.info/?l=openbsd-tech&m=149621427511219&w=2
96+
// https://github.com/rust-lang/libc/pull/613
97+
#[cfg(any(target_os = "macos", target_os = "ios",
98+
target_os = "freebsd", target_os = "dragonfly",
99+
target_os = "netbsd"))]
93100
EV_DISPATCH,
94101
#[cfg(target_os = "freebsd")]
95102
EV_DROP,
@@ -106,7 +113,9 @@ libc_bitflags!{
106113
EV_OOBAND,
107114
#[cfg(any(target_os = "macos", target_os = "ios"))]
108115
EV_POLL,
109-
#[cfg(not(target_os = "openbsd"))]
116+
#[cfg(any(target_os = "macos", target_os = "ios",
117+
target_os = "freebsd", target_os = "dragonfly",
118+
target_os = "netbsd"))]
110119
EV_RECEIPT,
111120
EV_SYSFLAGS,
112121
}

0 commit comments

Comments
 (0)