@@ -441,7 +441,6 @@ libc_enum! {
441441 #[ repr( usize ) ]
442442 #[ non_exhaustive]
443443 pub enum SpecialCharacterIndices {
444- #[ cfg( not( target_os = "haiku" ) ) ]
445444 VDISCARD ,
446445 #[ cfg( any( target_os = "dragonfly" ,
447446 target_os = "freebsd" ,
@@ -452,7 +451,6 @@ libc_enum! {
452451 target_os = "solaris" ) ) ]
453452 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
454453 VDSUSP ,
455- #[ cfg( not( target_os = "haiku" ) ) ]
456454 VEOF ,
457455 VEOL ,
458456 VEOL2 ,
@@ -465,14 +463,12 @@ libc_enum! {
465463 VERASE2 ,
466464 VINTR ,
467465 VKILL ,
468- #[ cfg( not( target_os = "haiku" ) ) ]
469466 VLNEXT ,
470467 #[ cfg( not( any( all( target_os = "linux" , target_arch = "sparc64" ) ,
471468 target_os = "illumos" , target_os = "solaris" ) ) ) ]
472469 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
473470 VMIN ,
474471 VQUIT ,
475- #[ cfg( not( target_os = "haiku" ) ) ]
476472 VREPRINT ,
477473 VSTART ,
478474 #[ cfg( any( target_os = "dragonfly" ,
@@ -496,7 +492,6 @@ libc_enum! {
496492 target_os = "illumos" , target_os = "solaris" ) ) ) ]
497493 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
498494 VTIME ,
499- #[ cfg( not( target_os = "haiku" ) ) ]
500495 VWERASE ,
501496 #[ cfg( target_os = "dragonfly" ) ]
502497 #[ cfg_attr( docsrs, doc( cfg( all( ) ) ) ) ]
@@ -1113,5 +1108,7 @@ mod test {
11131108 assert_eq ! ( Ok ( BaudRate :: B0 ) , BaudRate :: try_from( libc:: B0 ) ) ;
11141109 #[ cfg( not( target_os = "haiku" ) ) ]
11151110 assert ! ( BaudRate :: try_from( 999999999 ) . is_err( ) ) ;
1111+ #[ cfg( target_os = "haiku" ) ]
1112+ assert ! ( BaudRate :: try_from( 99 ) . is_err( ) ) ;
11161113 }
11171114}
0 commit comments