summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorGreg V <greg@unrelenting.technology>2018-01-10 22:59:38 +0300
committerGreg V <greg@unrelenting.technology>2018-01-22 18:15:36 +0300
commit2aeb382bb8df0add15f9e1c693882672cfde86c8 (patch)
tree20ad84fcddf07cb50d7793078a2014982344c601 /libc-test
parent6725fd6aef0465fd96e0de0a4d073bfc8b528f40 (diff)
downloadrust-libc-2aeb382bb8df0add15f9e1c693882672cfde86c8.tar.gz
Ignore new FreeBSD constants in tests
CI still runs version 10
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 885ae86894..a206815481 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -497,6 +497,10 @@ fn main() {
"HW_MAXID" |
"USER_MAXID" if freebsd => true,
+ // These constants were added in FreeBSD 11
+ "EVFILT_PROCDESC" | "EVFILT_SENDFILE" | "EVFILT_EMPTY" |
+ "PD_CLOEXEC" | "PD_ALLOWED_AT_FORK" if freebsd => true,
+
// These OSX constants are removed in Sierra.
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
"KERN_KDENABLE_BG_TRACE" if apple => true,