Skip to content

Commit 15af9b6

Browse files
bors[bot]rtzoeller
andauthored
Merge #1667
1667: Define _POSIX_VDISABLE on Android to fix doc test r=asomers a=rtzoeller This fixes the compilation [this](https://github.com/rtzoeller/nix/blob/1a2ee3da3026a14d42498f5ca4e4b2c1a75bc81d/src/sys/termios.rs#L27) example documentation on Android. Tested on Termux. Co-authored-by: Ryan Zoeller <[email protected]>
2 parents 6123083 + 1a2ee3d commit 15af9b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sys/termios.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ impl SpecialCharacterIndices {
497497
}
498498

499499
pub use libc::NCCS;
500-
#[cfg(any(target_os = "dragonfly",
500+
#[cfg(any(target_os = "android",
501+
target_os = "dragonfly",
501502
target_os = "freebsd",
502503
target_os = "linux",
503504
target_os = "macos",

0 commit comments

Comments
 (0)