diff options
author | bors <bors@rust-lang.org> | 2017-01-17 02:06:45 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2017-01-17 02:06:45 +0000 |
commit | 18a1de5a09b840c648a066d1b62593c221915c09 (patch) | |
tree | b83d21e3cb6469df0b30e8b4ca807846bb4028fc | |
parent | 4fe2cc22e716c7c91d341e6e538de6c09d4838e1 (diff) | |
parent | 7fbff3a4432b49439205b248003646268e44310c (diff) | |
download | rust-libc-18a1de5a09b840c648a066d1b62593c221915c09.tar.gz |
Auto merge of #497 - learnopengles:master, r=alexcrichton
Fix for removed OS X constants.
https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
Fixes https://github.com/rust-lang/libc/issues/480
-rw-r--r-- | libc-test/build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index a48590462e..fc4db1e9e1 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -374,6 +374,11 @@ fn main() { "HW_MAXID" | "USER_MAXID" 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, + "KERN_KDDISABLE_BG_TRACE" if apple => true, + _ => false, } }); |