@@ -2921,6 +2921,8 @@ fn test_linux(target: &str) {
29212921 "asm/mman.h" ,
29222922 "linux/can.h" ,
29232923 "linux/can/raw.h" ,
2924+ // FIXME: requires kernel headers >= 5.4.1.
2925+ [ !musl] : "linux/can/j1939.h" ,
29242926 "linux/dccp.h" ,
29252927 "linux/errqueue.h" ,
29262928 "linux/falloc.h" ,
@@ -3046,6 +3048,11 @@ fn test_linux(target: &str) {
30463048 // For internal use only, to define architecture specific ioctl constants with a libc specific type.
30473049 "Ioctl" => true ,
30483050
3051+ // FIXME: requires >= 5.4.1 kernel headers
3052+ "pgn_t" if musl => true ,
3053+ "priority_t" if musl => true ,
3054+ "name_t" if musl => true ,
3055+
30493056 _ => false ,
30503057 }
30513058 } ) ;
@@ -3107,6 +3114,9 @@ fn test_linux(target: &str) {
31073114 // Might differ between kernel versions
31083115 "open_how" => true ,
31093116
3117+ // FIXME: requires >= 5.4.1 kernel headers
3118+ "j1939_filter" if musl => true ,
3119+
31103120 _ => false ,
31113121 }
31123122 } ) ;
@@ -3141,6 +3151,12 @@ fn test_linux(target: &str) {
31413151 || name. starts_with ( "TCP_" )
31423152 || name. starts_with ( "UINPUT_" )
31433153 || name. starts_with ( "VMADDR_" )
3154+ // FIXME: Requires >= 5.4.1 kernel headers
3155+ || name. starts_with ( "J1939" )
3156+ // FIXME: Requires >= 5.4.1 kernel headers
3157+ || name. starts_with ( "SO_J1939" )
3158+ // FIXME: Requires >= 5.4.1 kernel headers
3159+ || name. starts_with ( "SCM_J1939" )
31443160 {
31453161 return true ;
31463162 }
@@ -3237,6 +3253,18 @@ fn test_linux(target: &str) {
32373253 | "CAN_RAW_FILTER_MAX"
32383254 | "CAN_NPROTO" => true ,
32393255
3256+ // FIXME: Requires recent kernel headers (5.15)
3257+ | "J1939_NLA_TOTAL_SIZE"
3258+ | "J1939_NLA_PGN"
3259+ | "J1939_NLA_SRC_NAME"
3260+ | "J1939_NLA_DEST_NAME"
3261+ | "J1939_NLA_SRC_ADDR"
3262+ | "J1939_NLA_DEST_ADDR"
3263+ | "J1939_EE_INFO_RX_RTS"
3264+ | "J1939_EE_INFO_RX_DPO"
3265+ | "J1939_EE_INFO_RX_ABORT"
3266+ | "SOL_CAN_J1939" => true ,
3267+
32403268 // FIXME: Requires recent kernel headers (5.8):
32413269 "STATX_MNT_ID" => true ,
32423270
@@ -3649,6 +3677,7 @@ fn test_haiku(target: &str) {
36493677 let mut cfg = ctest_cfg ( ) ;
36503678 cfg. flag ( "-Wno-deprecated-declarations" ) ;
36513679 cfg. define ( "__USE_GNU" , Some ( "1" ) ) ;
3680+ cfg. define ( "_GNU_SOURCE" , None ) ;
36523681
36533682 // POSIX API
36543683 headers ! { cfg:
@@ -3751,13 +3780,17 @@ fn test_haiku(target: &str) {
37513780 "uchar.h" ,
37523781 "unistd.h" ,
37533782 "utime.h" ,
3783+ "utmpx.h" ,
37543784 "wchar.h" ,
37553785 "wchar_t.h" ,
37563786 "wctype.h"
37573787 }
37583788
37593789 // BSD Extensions
37603790 headers ! { cfg:
3791+ "ifaddrs.h" ,
3792+ "libutil.h" ,
3793+ "link.h" ,
37613794 "pty.h" ,
37623795 }
37633796
@@ -3803,6 +3836,11 @@ fn test_haiku(target: &str) {
38033836 // with mem::zeroed(), so skip the automated test
38043837 "image_info" | "thread_info" => true ,
38053838
3839+ "Elf64_Phdr" => true ,
3840+
3841+ // is an union
3842+ "cpuid_info" => true ,
3843+
38063844 _ => false ,
38073845 }
38083846 } ) ;
@@ -3839,6 +3877,8 @@ fn test_haiku(target: &str) {
38393877 // translated into a struct argument
38403878 "find_path" => true ,
38413879
3880+ "get_cpuid" => true ,
3881+
38423882 _ => false ,
38433883 }
38443884 } ) ;
0 commit comments