Skip to content

Commit 209468a

Browse files
committed
Auto merge of #781 - jessicah:haiku-fixes-for-nix, r=alexcrichton
Haiku fixes for nix
2 parents d9b8cd1 + 0d822be commit 209468a

File tree

7 files changed

+335
-58
lines changed

7 files changed

+335
-58
lines changed

src/unix/bsd/mod.rs

+7
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ pub const MDMBUF: ::tcflag_t = 0x00100000;
299299
pub const WNOHANG: ::c_int = 0x00000001;
300300
pub const WUNTRACED: ::c_int = 0x00000002;
301301

302+
pub const RTLD_LAZY: ::c_int = 0x1;
302303
pub const RTLD_NOW: ::c_int = 0x2;
303304
pub const RTLD_NEXT: *mut ::c_void = -1isize as *mut ::c_void;
304305
pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void;
@@ -313,6 +314,12 @@ pub const TCP_MAXSEG: ::c_int = 2;
313314

314315
pub const PIPE_BUF: usize = 512;
315316

317+
pub const POLLIN: ::c_short = 0x1;
318+
pub const POLLPRI: ::c_short = 0x2;
319+
pub const POLLOUT: ::c_short = 0x4;
320+
pub const POLLERR: ::c_short = 0x8;
321+
pub const POLLHUP: ::c_short = 0x10;
322+
pub const POLLNVAL: ::c_short = 0x20;
316323
pub const POLLRDNORM: ::c_short = 0x040;
317324
pub const POLLWRNORM: ::c_short = 0x004;
318325
pub const POLLRDBAND: ::c_short = 0x080;

0 commit comments

Comments
 (0)