@@ -1659,6 +1659,10 @@ fn test_android(target: &str) {
1659
1659
// Requires Linux kernel 5.6
1660
1660
"VMADDR_CID_LOCAL" => true ,
1661
1661
1662
+ // FIXME: conflicts with standard C headers and is tested in
1663
+ // `linux_termios.rs` below:
1664
+ "TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => true ,
1665
+
1662
1666
_ => false ,
1663
1667
}
1664
1668
} ) ;
@@ -2867,7 +2871,11 @@ fn test_linux(target: &str) {
2867
2871
2868
2872
// FIXME: conflicts with glibc headers and is tested in
2869
2873
// `linux_termios.rs` below:
2870
- "BOTHER" => true ,
2874
+ | "BOTHER"
2875
+ | "TCGETS2"
2876
+ | "TCSETS2"
2877
+ | "TCSETSW2"
2878
+ | "TCSETSF2" => true ,
2871
2879
2872
2880
// FIXME: on musl the pthread types are defined a little differently
2873
2881
// - these constants are used by the glibc implementation.
@@ -3210,10 +3218,15 @@ fn test_linux_like_apis(target: &str) {
3210
3218
// test termios
3211
3219
let mut cfg = ctest_cfg ( ) ;
3212
3220
cfg. header ( "asm/termbits.h" ) ;
3221
+ cfg. header ( "linux/termios.h" ) ;
3213
3222
cfg. skip_type ( |_| true )
3214
3223
. skip_static ( |_| true )
3215
3224
. 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
+ } )
3217
3230
. skip_struct ( |s| s != "termios2" )
3218
3231
. type_name ( move |ty, is_struct, is_union| match ty {
3219
3232
t if is_struct => format ! ( "struct {}" , t) ,
0 commit comments