From c379d1ac997a84c0a2fe96b0f65c3bf244c96c8d Mon Sep 17 00:00:00 2001 From: Nick Pelone Date: Tue, 26 May 2020 15:15:44 -0400 Subject: Add EV_DISPATCH and EV_RECEIPT EventFlag items for OpenBSD. --- src/sys/event.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/sys/event.rs') diff --git a/src/sys/event.rs b/src/sys/event.rs index 7af5ae2b..7550c2ab 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -90,14 +90,9 @@ libc_bitflags!{ EV_CLEAR; EV_DELETE; EV_DISABLE; - // No released version of OpenBSD supports EV_DISPATCH or EV_RECEIPT. - // These have been commited to the -current branch though and are - // expected to be part of the OpenBSD 6.2 release in Nov 2017. - // See: https://marc.info/?l=openbsd-tech&m=149621427511219&w=2 - // https://github.com/rust-lang/libc/pull/613 #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "macos", - target_os = "netbsd"))] + target_os = "netbsd", target_os = "openbsd"))] EV_DISPATCH; #[cfg(target_os = "freebsd")] EV_DROP; @@ -116,7 +111,7 @@ libc_bitflags!{ EV_POLL; #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "ios", target_os = "macos", - target_os = "netbsd"))] + target_os = "netbsd", target_os = "openbsd"))] EV_RECEIPT; EV_SYSFLAGS; } -- cgit v1.2.3 From 0f9fcbd4c57d8466446b56c7ee24db73df5f8d3f Mon Sep 17 00:00:00 2001 From: Nick Pelone Date: Tue, 26 May 2020 15:26:22 -0400 Subject: Fix use of deprecated libc type, needed in order to run the tests successfully. This type was deprecated in libc 0.2.55. --- src/sys/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys/event.rs') diff --git a/src/sys/event.rs b/src/sys/event.rs index 7550c2ab..cf9393bd 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -28,7 +28,7 @@ type type_of_data = intptr_t; #[cfg(any(target_os = "netbsd"))] type type_of_udata = intptr_t; #[cfg(any(target_os = "netbsd", target_os = "openbsd"))] -type type_of_data = libc::int64_t; +type type_of_data = i64; #[cfg(target_os = "netbsd")] type type_of_event_filter = u32; -- cgit v1.2.3