From 92d502628c525f4a206d02793ace7ef71e571f2b Mon Sep 17 00:00:00 2001 From: M Farkas-Dyck Date: Sat, 1 Dec 2018 16:39:34 -0800 Subject: [PATCH] define `TIMER_ABSTIME` on BSD --- src/unix/bsd/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 770b9b98..2275c2bd 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -332,6 +332,8 @@ pub const POLLWRNORM: ::c_short = 0x004; pub const POLLRDBAND: ::c_short = 0x080; pub const POLLWRBAND: ::c_short = 0x100; +pub const TIMER_ABSTIME: ::c_int = 1; + f! { pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr { if (*mhdr).msg_controllen as usize >= mem::size_of::() {