Skip some items changed in Catalina

This commit is contained in:
Yuki Okushi 2020-02-29 19:38:52 +09:00
parent 6b17437c18
commit 9f9a5edcee
1 changed files with 12 additions and 0 deletions

View File

@ -182,6 +182,10 @@ fn test_apple(target: &str) {
// These OSX constants are removed in Sierra.
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true,
// FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
"SF_SETTABLE" => true,
// FIXME: the value has been changed since Catalina (VM_FLAGS_RESILIENT_MEDIA is also contained now).
"VM_FLAGS_USER_REMAP" => true,
_ => false,
}
});
@ -199,6 +203,14 @@ fn test_apple(target: &str) {
}
});
cfg.skip_field(move |struct_, field| {
match (struct_, field) {
// FIXME: the array size has been changed since macOS 10.15 ([8] -> [7]).
("statfs", "f_reserved") => true,
_ => false,
}
});
cfg.skip_field_type(move |struct_, field| {
match (struct_, field) {
// FIXME: actually a union