diff options
-rw-r--r-- | libc-test/build.rs | 2 | ||||
-rw-r--r-- | src/unix/notbsd/android/mod.rs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index b76b6f09ce..29e43f6d14 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -560,7 +560,7 @@ fn main() { // Defined by libattr not libc on linux (hard to test). // See constant definition for more details. - "ENOATTR" if linux => true, + "ENOATTR" if android || linux => true, // On mips*-unknown-linux-gnu* CMSPAR cannot be included with the set of headers we // want to use here for testing. It's originally defined in asm/termbits.h, which is diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs index 53f957d3e8..55adc5c8d6 100644 --- a/src/unix/notbsd/android/mod.rs +++ b/src/unix/notbsd/android/mod.rs @@ -1458,6 +1458,9 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962; pub const SIOCGIFMAP: ::c_ulong = 0x00008970; pub const SIOCSIFMAP: ::c_ulong = 0x00008971; +// Similarity to Linux it's not used but defined for compatibility. +pub const ENOATTR: ::c_int = ::ENODATA; + f! { pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () { for slot in cpuset.__bits.iter_mut() { |