@@ -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