Skip to content

Commit 0dae0e7

Browse files
committed
Auto merge of #708 - wezm:remove-missing-openbsd-constants, r=alexcrichton
Add KERN_USERMOUNT and KERN_ARND to don't check list on OpenBSD These [two constants are no longer in OpenBSD](https://github.com/openbsd/src/blob/3f376b0849a3d7e59ed23ac6dba2b729fc2c7589/sys/sys/sysctl.h#L133-L140). They were preventing the the tests from passing. With this change the test now pass: ``` CC=egcc cargo run Compiling libc v0.2.29 (file:///home/vagrant/libc) Compiling libc-test v0.1.0 (file:///home/vagrant/libc/libc-test) Finished debug [unoptimized + debuginfo] target(s) in 11.7 secs Running `/home/vagrant/libc/target/debug/libc-test` RUNNING ALL TESTS PASSED 5935 tests ``` They are still present in bitrig so I moved them there.
2 parents db27ee2 + 58c772b commit 0dae0e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,11 @@ fn main() {
434434
"KERN_KDENABLE_BG_TRACE" if apple => true,
435435
"KERN_KDDISABLE_BG_TRACE" if apple => true,
436436

437+
// These constants were removed in OpenBSD 6 (https://git.io/v7gBO
438+
// https://git.io/v7gBq)
439+
"KERN_USERMOUNT" |
440+
"KERN_ARND" if openbsd => true,
441+
437442
// These are either unimplemented or optionally built into uClibc
438443
"LC_CTYPE_MASK" | "LC_NUMERIC_MASK" | "LC_TIME_MASK" | "LC_COLLATE_MASK" | "LC_MONETARY_MASK" | "LC_MESSAGES_MASK" |
439444
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |

0 commit comments

Comments
 (0)