aboutsummaryrefslogtreecommitdiff
path: root/src/sys/unix/selector/kqueue.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/unix/selector/kqueue.rs')
-rw-r--r--src/sys/unix/selector/kqueue.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sys/unix/selector/kqueue.rs b/src/sys/unix/selector/kqueue.rs
index f509f92..34f5340 100644
--- a/src/sys/unix/selector/kqueue.rs
+++ b/src/sys/unix/selector/kqueue.rs
@@ -19,7 +19,7 @@ type Count = libc::c_int;
type Count = libc::size_t;
// Type of the `filter` field in the `kevent` structure.
-#[cfg(any(target_os = "freebsd", target_os = "openbsd"))]
+#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))]
type Filter = libc::c_short;
#[cfg(any(target_os = "macos", target_os = "ios"))]
type Filter = i16;
@@ -27,7 +27,7 @@ type Filter = i16;
type Filter = u32;
// Type of the `flags` field in the `kevent` structure.
-#[cfg(any(target_os = "freebsd", target_os = "openbsd"))]
+#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))]
type Flags = libc::c_ushort;
#[cfg(any(target_os = "macos", target_os = "ios"))]
type Flags = u16;
@@ -651,7 +651,7 @@ pub mod event {
libc::NOTE_LEEWAY,
#[cfg(any(target_os = "ios", target_os = "macos"))]
libc::NOTE_CRITICAL,
- #[cfg(any(target_os = "dragonfly"))]
+ #[cfg(any(target_os = "ios", target_os = "macos"))]
libc::NOTE_BACKGROUND,
);