@@ -512,13 +512,12 @@ libc_enum! {
512
512
}
513
513
514
514
// TODO: Make this usable directly as a slice index.
515
- #[ cfg( not( target_os = "haiku" ) ) ]
516
515
libc_enum ! {
517
516
/// Indices into the `termios.c_cc` array for special characters.
518
517
#[ repr( usize ) ]
519
518
#[ non_exhaustive]
520
519
pub enum SpecialCharacterIndices {
521
- #[ cfg( not( target_os = "aix" ) ) ]
520
+ #[ cfg( not( any ( target_os = "aix" , target_os = "haiku" ) ) ) ]
522
521
VDISCARD ,
523
522
#[ cfg( any( target_os = "dragonfly" ,
524
523
target_os = "freebsd" ,
@@ -540,11 +539,13 @@ libc_enum! {
540
539
VERASE2 ,
541
540
VINTR ,
542
541
VKILL ,
542
+ #[ cfg( not( target_os = "haiku" ) ) ]
543
543
VLNEXT ,
544
544
#[ cfg( not( any( all( target_os = "linux" , target_arch = "sparc64" ) ,
545
- target_os = "illumos" , target_os = "solaris" , target_os = "aix" ) ) ) ]
545
+ target_os = "illumos" , target_os = "solaris" , target_os = "aix" , target_os = "haiku" ) ) ) ]
546
546
VMIN ,
547
547
VQUIT ,
548
+ #[ cfg( not( target_os = "haiku" ) ) ]
548
549
VREPRINT ,
549
550
VSTART ,
550
551
#[ cfg( any( target_os = "dragonfly" ,
@@ -562,9 +563,9 @@ libc_enum! {
562
563
#[ cfg( any( target_os = "haiku" , target_os = "illumos" , target_os = "solaris" ) ) ]
563
564
VSWTCH ,
564
565
#[ cfg( not( any( all( target_os = "linux" , target_arch = "sparc64" ) ,
565
- target_os = "illumos" , target_os = "solaris" , target_os = "aix" ) ) ) ]
566
+ target_os = "illumos" , target_os = "solaris" , target_os = "aix" , target_os = "haiku" ) ) ) ]
566
567
VTIME ,
567
- #[ cfg( not( target_os = "aix" ) ) ]
568
+ #[ cfg( not( any ( target_os = "aix" , target_os = "haiku" ) ) ) ]
568
569
VWERASE ,
569
570
#[ cfg( target_os = "dragonfly" ) ]
570
571
VCHECKPT ,
@@ -576,6 +577,7 @@ libc_enum! {
576
577
target_os = "illumos" ,
577
578
target_os = "solaris" ,
578
579
target_os = "aix" ,
580
+ target_os = "haiku" ,
579
581
) ) ]
580
582
impl SpecialCharacterIndices {
581
583
pub const VMIN : SpecialCharacterIndices = SpecialCharacterIndices :: VEOF ;
0 commit comments