Skip to content

Commit 9f9a5ed

Browse files
committed
Skip some items changed in Catalina
1 parent 6b17437 commit 9f9a5ed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

libc-test/build.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ fn test_apple(target: &str) {
182182
// These OSX constants are removed in Sierra.
183183
// https://developer.apple.com/library/content/releasenotes/General/APIDiffsMacOS10_12/Swift/Darwin.html
184184
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true,
185+
// FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
186+
"SF_SETTABLE" => true,
187+
// FIXME: the value has been changed since Catalina (VM_FLAGS_RESILIENT_MEDIA is also contained now).
188+
"VM_FLAGS_USER_REMAP" => true,
185189
_ => false,
186190
}
187191
});
@@ -199,6 +203,14 @@ fn test_apple(target: &str) {
199203
}
200204
});
201205

206+
cfg.skip_field(move |struct_, field| {
207+
match (struct_, field) {
208+
// FIXME: the array size has been changed since macOS 10.15 ([8] -> [7]).
209+
("statfs", "f_reserved") => true,
210+
_ => false,
211+
}
212+
});
213+
202214
cfg.skip_field_type(move |struct_, field| {
203215
match (struct_, field) {
204216
// FIXME: actually a union

0 commit comments

Comments
 (0)