diff options
author | Kevin Brothaler <admin@digipom.com> | 2017-01-16 12:49:49 -0400 |
---|---|---|
committer | Kevin Brothaler <admin@digipom.com> | 2017-01-16 12:49:49 -0400 |
commit | 7fbff3a4432b49439205b248003646268e44310c (patch) | |
tree | b83d21e3cb6469df0b30e8b4ca807846bb4028fc | |
parent | 4fe2cc22e716c7c91d341e6e538de6c09d4838e1 (diff) | |
download | rust-libc-7fbff3a4432b49439205b248003646268e44310c.tar.gz |
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, } }); |