From 2cc90c7e658b4fd24ac7ca02b83ac8ae5e4d8c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Mustoha?= Date: Thu, 18 Feb 2016 11:56:40 +0100 Subject: [PATCH] Use 32-bit mode_t on 64-bit Android devices --- src/unix/notbsd/android/b32.rs | 2 ++ src/unix/notbsd/android/b64.rs | 2 ++ src/unix/notbsd/android/mod.rs | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/unix/notbsd/android/b32.rs b/src/unix/notbsd/android/b32.rs index 8ae2c2e38040d..9cc469f11405b 100644 --- a/src/unix/notbsd/android/b32.rs +++ b/src/unix/notbsd/android/b32.rs @@ -1,3 +1,5 @@ +pub type mode_t = u16; + s! { pub struct sigaction { pub sa_sigaction: ::sighandler_t, diff --git a/src/unix/notbsd/android/b64.rs b/src/unix/notbsd/android/b64.rs index d869b8cf618c9..45fd961581a4d 100644 --- a/src/unix/notbsd/android/b64.rs +++ b/src/unix/notbsd/android/b64.rs @@ -1,3 +1,5 @@ +pub type mode_t = u32; + s! { pub struct sigaction { pub sa_flags: ::c_uint, diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs index 2511a1b77c821..c081ecfaf028f 100644 --- a/src/unix/notbsd/android/mod.rs +++ b/src/unix/notbsd/android/mod.rs @@ -13,7 +13,6 @@ pub type ino_t = u32; pub type blkcnt_t = u32; pub type blksize_t = u32; pub type dev_t = u32; -pub type mode_t = u16; pub type nlink_t = u32; pub type useconds_t = u32; pub type socklen_t = i32;