@@ -441,7 +441,6 @@ libc_enum! {
441
441
#[ repr( usize ) ]
442
442
#[ non_exhaustive]
443
443
pub enum SpecialCharacterIndices {
444
- #[ cfg( not( target_os = "haiku" ) ) ]
445
444
VDISCARD ,
446
445
#[ cfg( any( target_os = "dragonfly" ,
447
446
target_os = "freebsd" ,
@@ -452,7 +451,6 @@ libc_enum! {
452
451
target_os = "solaris" ) ) ]
453
452
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
454
453
VDSUSP ,
455
- #[ cfg( not( target_os = "haiku" ) ) ]
456
454
VEOF ,
457
455
VEOL ,
458
456
VEOL2 ,
@@ -465,14 +463,12 @@ libc_enum! {
465
463
VERASE2 ,
466
464
VINTR ,
467
465
VKILL ,
468
- #[ cfg( not( target_os = "haiku" ) ) ]
469
466
VLNEXT ,
470
467
#[ cfg( not( any( all( target_os = "linux" , target_arch = "sparc64" ) ,
471
468
target_os = "illumos" , target_os = "solaris" ) ) ) ]
472
469
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
473
470
VMIN ,
474
471
VQUIT ,
475
- #[ cfg( not( target_os = "haiku" ) ) ]
476
472
VREPRINT ,
477
473
VSTART ,
478
474
#[ cfg( any( target_os = "dragonfly" ,
@@ -496,7 +492,6 @@ libc_enum! {
496
492
target_os = "illumos" , target_os = "solaris" ) ) ) ]
497
493
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
498
494
VTIME ,
499
- #[ cfg( not( target_os = "haiku" ) ) ]
500
495
VWERASE ,
501
496
#[ cfg( target_os = "dragonfly" ) ]
502
497
#[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
@@ -1113,5 +1108,7 @@ mod test {
1113
1108
assert_eq ! ( Ok ( BaudRate :: B0 ) , BaudRate :: try_from( libc:: B0 ) ) ;
1114
1109
#[ cfg( not( target_os = "haiku" ) ) ]
1115
1110
assert ! ( BaudRate :: try_from( 999999999 ) . is_err( ) ) ;
1111
+ #[ cfg( target_os = "haiku" ) ]
1112
+ assert ! ( BaudRate :: try_from( 99 ) . is_err( ) ) ;
1116
1113
}
1117
1114
}
0 commit comments