Skip to content

Commit 24155b1

Browse files
committed
Auto merge of rust-lang#728 - semarie:openbsd-kqueue, r=alexcrichton
Openbsd kqueue The PR supersede rust-lang#613 to add exception on the testsuite.
2 parents d6317b6 + 7e349c0 commit 24155b1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ fn main() {
440440
"KERN_USERMOUNT" |
441441
"KERN_ARND" if openbsd => true,
442442

443+
// These constats were added in OpenBSD 6.2
444+
"EV_RECEIPT" | "EV_DISPATCH" if openbsd => true,
445+
443446
// These are either unimplemented or optionally built into uClibc
444447
"LC_CTYPE_MASK" | "LC_NUMERIC_MASK" | "LC_TIME_MASK" | "LC_COLLATE_MASK" | "LC_MONETARY_MASK" | "LC_MESSAGES_MASK" |
445448
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ pub const EV_ENABLE: ::uint16_t = 0x4;
431431
pub const EV_DISABLE: ::uint16_t = 0x8;
432432
pub const EV_ONESHOT: ::uint16_t = 0x10;
433433
pub const EV_CLEAR: ::uint16_t = 0x20;
434+
pub const EV_RECEIPT: ::uint16_t = 0x40;
435+
pub const EV_DISPATCH: ::uint16_t = 0x80;
434436
pub const EV_FLAG1: ::uint16_t = 0x2000;
435437
pub const EV_ERROR: ::uint16_t = 0x4000;
436438
pub const EV_EOF: ::uint16_t = 0x8000;

0 commit comments

Comments
 (0)