termux-packages/packages/locustdb/nix-0.5.1-termios.diff

32 lines
1.3 KiB
Diff

--- a/src/sys/termios.rs
+++ b/src/sys/termios.rs
@@ -11,7 +11,7 @@
mod ffi {
pub use self::consts::*;
- #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd", target_os = "linux"))]
+ #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd", target_os = "linux", target_os = "android"))]
mod non_android {
use super::consts::*;
use libc::c_int;
@@ -35,9 +35,10 @@
}
}
- #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd", target_os = "linux"))]
+ #[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd", target_os = "linux", target_os = "android"))]
pub use self::non_android::*;
+ /*
// On Android before 5.0, Bionic directly inline these to ioctl() calls.
#[inline]
#[cfg(all(target_os = "android", not(target_arch = "mips")))]
@@ -92,6 +93,7 @@
#[cfg(target_os = "android")]
pub use self::android::*;
+ */
#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "openbsd", target_os = "netbsd"))]