@@ -3333,6 +3333,9 @@ fn test_linux(target: &str) {
3333
3333
"Ioctl" if gnu => "unsigned long" . to_string ( ) ,
3334
3334
"Ioctl" => "int" . to_string ( ) ,
3335
3335
3336
+ // LFS64 types have been removed in musl 1.2.4+
3337
+ "off64_t" if musl => "off_t" . to_string ( ) ,
3338
+
3336
3339
// typedefs don't need any keywords
3337
3340
t if t. ends_with ( "_t" ) => t. to_string ( ) ,
3338
3341
// put `struct` in front of all structs:.
@@ -3397,6 +3400,7 @@ fn test_linux(target: &str) {
3397
3400
"name_t" if musl => true ,
3398
3401
3399
3402
t => if musl {
3403
+ // LFS64 types have been removed in musl 1.2.4+
3400
3404
t. ends_with ( "64" ) || t. ends_with ( "64_t" )
3401
3405
} else {
3402
3406
false
@@ -3412,6 +3416,10 @@ fn test_linux(target: &str) {
3412
3416
if musl && ty. starts_with ( "uinput_" ) {
3413
3417
return true ;
3414
3418
}
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
+ }
3415
3423
// FIXME: sparc64 CI has old headers
3416
3424
if sparc64 && ( ty == "uinput_ff_erase" || ty == "uinput_abs_setup" ) {
3417
3425
return true ;
@@ -3529,6 +3537,10 @@ fn test_linux(target: &str) {
3529
3537
{
3530
3538
return true ;
3531
3539
}
3540
+ // LFS64 types have been removed in musl 1.2.4+
3541
+ if name. starts_with ( "RLIM64" ) {
3542
+ return true ;
3543
+ }
3532
3544
}
3533
3545
match name {
3534
3546
// These constants are not available if gnu headers have been included
0 commit comments