summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM Farkas-Dyck <strake888@gmail.com>2018-12-01 16:39:34 -0800
committerM Farkas-Dyck <strake888@gmail.com>2018-12-01 16:39:34 -0800
commit92d502628c525f4a206d02793ace7ef71e571f2b (patch)
tree8c75ef7656f971b60d0649fb499ca15305f1251a
parent31e8b7528d1a8e1d7e2a2c550ee4e7201aed5fb5 (diff)
downloadrust-libc-92d502628c525f4a206d02793ace7ef71e571f2b.tar.gz
define `TIMER_ABSTIME` on BSD
-rw-r--r--src/unix/bsd/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index 770b9b9818..2275c2bd98 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::<cmsghdr>() {