Skip to content

Commit f816434

Browse files
committed
POLL*/RTLD_LAZY: definitions differ on Haiku.
1 parent 3c91010 commit f816434

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/unix/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,22 @@ pub const S_ISUID: ::c_int = 0x800;
163163
pub const S_ISGID: ::c_int = 0x400;
164164
pub const S_ISVTX: ::c_int = 0x200;
165165

166+
#[cfg(not(target_os = "haiku"))]
166167
pub const POLLIN: ::c_short = 0x1;
168+
#[cfg(not(target_os = "haiku"))]
167169
pub const POLLPRI: ::c_short = 0x2;
170+
#[cfg(not(target_os = "haiku"))]
168171
pub const POLLOUT: ::c_short = 0x4;
172+
#[cfg(not(target_os = "haiku"))]
169173
pub const POLLERR: ::c_short = 0x8;
174+
#[cfg(not(target_os = "haiku"))]
170175
pub const POLLHUP: ::c_short = 0x10;
176+
#[cfg(not(target_os = "haiku"))]
171177
pub const POLLNVAL: ::c_short = 0x20;
172178

173179
pub const IF_NAMESIZE: ::size_t = 16;
174180

181+
#[cfg(not(target_os = "haiku"))]
175182
pub const RTLD_LAZY: ::c_int = 0x1;
176183

177184
pub const LOG_EMERG: ::c_int = 0;

0 commit comments

Comments
 (0)