@@ -1659,6 +1659,10 @@ fn test_android(target: &str) {
16591659 // Requires Linux kernel 5.6
16601660 "VMADDR_CID_LOCAL" => true ,
16611661
1662+ // FIXME: conflicts with standard C headers and is tested in
1663+ // `linux_termios.rs` below:
1664+ "TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => true ,
1665+
16621666 _ => false ,
16631667 }
16641668 } ) ;
@@ -2867,7 +2871,11 @@ fn test_linux(target: &str) {
28672871
28682872 // FIXME: conflicts with glibc headers and is tested in
28692873 // `linux_termios.rs` below:
2870- "BOTHER" => true ,
2874+ | "BOTHER"
2875+ | "TCGETS2"
2876+ | "TCSETS2"
2877+ | "TCSETSW2"
2878+ | "TCSETSF2" => true ,
28712879
28722880 // FIXME: on musl the pthread types are defined a little differently
28732881 // - these constants are used by the glibc implementation.
@@ -3210,10 +3218,15 @@ fn test_linux_like_apis(target: &str) {
32103218 // test termios
32113219 let mut cfg = ctest_cfg ( ) ;
32123220 cfg. header ( "asm/termbits.h" ) ;
3221+ cfg. header ( "linux/termios.h" ) ;
32133222 cfg. skip_type ( |_| true )
32143223 . skip_static ( |_| true )
32153224 . skip_fn ( |_| true )
3216- . skip_const ( |c| c != "BOTHER" )
3225+ . skip_const ( |c| match c {
3226+ "BOTHER" => false ,
3227+ "TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => false ,
3228+ _ => true ,
3229+ } )
32173230 . skip_struct ( |s| s != "termios2" )
32183231 . type_name ( move |ty, is_struct, is_union| match ty {
32193232 t if is_struct => format ! ( "struct {}" , t) ,
0 commit comments