From f816434f9b12016c4b83477f3d548de27cbabd50 Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Tue, 26 Sep 2017 04:09:54 +0000 Subject: [PATCH] POLL*/RTLD_LAZY: definitions differ on Haiku. --- src/unix/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index f60985c4..ff341d3c 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -163,15 +163,22 @@ pub const S_ISUID: ::c_int = 0x800; pub const S_ISGID: ::c_int = 0x400; pub const S_ISVTX: ::c_int = 0x200; +#[cfg(not(target_os = "haiku"))] pub const POLLIN: ::c_short = 0x1; +#[cfg(not(target_os = "haiku"))] pub const POLLPRI: ::c_short = 0x2; +#[cfg(not(target_os = "haiku"))] pub const POLLOUT: ::c_short = 0x4; +#[cfg(not(target_os = "haiku"))] pub const POLLERR: ::c_short = 0x8; +#[cfg(not(target_os = "haiku"))] pub const POLLHUP: ::c_short = 0x10; +#[cfg(not(target_os = "haiku"))] pub const POLLNVAL: ::c_short = 0x20; pub const IF_NAMESIZE: ::size_t = 16; +#[cfg(not(target_os = "haiku"))] pub const RTLD_LAZY: ::c_int = 0x1; pub const LOG_EMERG: ::c_int = 0;