Skip to content

Commit e5b8ede

Browse files
committed
Disable libc-test for LFS64 types
1 parent 0d4f8b5 commit e5b8ede

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
@@ -3333,6 +3333,9 @@ fn test_linux(target: &str) {
33333333
"Ioctl" if gnu => "unsigned long".to_string(),
33343334
"Ioctl" => "int".to_string(),
33353335

3336+
// LFS64 types have been removed in musl 1.2.4+
3337+
"off64_t" if musl => "off_t".to_string(),
3338+
33363339
// typedefs don't need any keywords
33373340
t if t.ends_with("_t") => t.to_string(),
33383341
// put `struct` in front of all structs:.
@@ -3397,6 +3400,7 @@ fn test_linux(target: &str) {
33973400
"name_t" if musl => true,
33983401

33993402
t => if musl {
3403+
// LFS64 types have been removed in musl 1.2.4+
34003404
t.ends_with("64") || t.ends_with("64_t")
34013405
} else {
34023406
false
@@ -3412,6 +3416,10 @@ fn test_linux(target: &str) {
34123416
if musl && ty.starts_with("uinput_") {
34133417
return true;
34143418
}
3419+
// LFS64 types have been removed in musl 1.2.4+
3420+
if musl && (ty.ends_with("64") || ty.ends_with("64_t")) {
3421+
return true;
3422+
}
34153423
// FIXME: sparc64 CI has old headers
34163424
if sparc64 && (ty == "uinput_ff_erase" || ty == "uinput_abs_setup") {
34173425
return true;
@@ -3529,6 +3537,10 @@ fn test_linux(target: &str) {
35293537
{
35303538
return true;
35313539
}
3540+
// LFS64 types have been removed in musl 1.2.4+
3541+
if name.starts_with("RLIM64") {
3542+
return true;
3543+
}
35323544
}
35333545
match name {
35343546
// These constants are not available if gnu headers have been included

0 commit comments

Comments
 (0)