Skip to content

Commit 18a1de5

Browse files
committed
Auto merge of rust-lang#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 rust-lang/libc#480
2 parents 4fe2cc2 + 7fbff3a commit 18a1de5

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
@@ -374,6 +374,11 @@ fn main() {
374374
"HW_MAXID" |
375375
"USER_MAXID" if freebsd => true,
376376

377+
// These OSX constants are removed in Sierra.
378+
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
379+
"KERN_KDENABLE_BG_TRACE" if apple => true,
380+
"KERN_KDDISABLE_BG_TRACE" if apple => true,
381+
377382
_ => false,
378383
}
379384
});

0 commit comments

Comments
 (0)