From 0ea2040f13e269dfd73b89a31b56b1f1d83f2c70 Mon Sep 17 00:00:00 2001 From: roblabla Date: Tue, 4 Jul 2017 17:19:32 +0200 Subject: [PATCH] Add missing constant MAP_32BIT on x86_64-linux-android and i686-linux-android --- src/unix/notbsd/android/b32/x86.rs | 2 ++ src/unix/notbsd/android/b64/x86_64.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/unix/notbsd/android/b32/x86.rs b/src/unix/notbsd/android/b32/x86.rs index c4b8197d..bbf78e35 100644 --- a/src/unix/notbsd/android/b32/x86.rs +++ b/src/unix/notbsd/android/b32/x86.rs @@ -4,3 +4,5 @@ pub type wchar_t = i32; pub const O_DIRECT: ::c_int = 0x4000; pub const O_DIRECTORY: ::c_int = 0x10000; pub const O_NOFOLLOW: ::c_int = 0x20000; + +pub const MAP_32BIT: ::c_int = 0x40; diff --git a/src/unix/notbsd/android/b64/x86_64.rs b/src/unix/notbsd/android/b64/x86_64.rs index 7e824ccc..0cbff0a3 100644 --- a/src/unix/notbsd/android/b64/x86_64.rs +++ b/src/unix/notbsd/android/b64/x86_64.rs @@ -51,3 +51,5 @@ pub const SYS_gettid: ::c_long = 186; pub const SIGSTKSZ: ::size_t = 8192; pub const MINSIGSTKSZ: ::size_t = 2048; + +pub const MAP_32BIT: ::c_int = 0x40;