Add ENOATTR for Android
This commit is contained in:
parent
8a9b980a84
commit
27043ec8df
|
@ -560,7 +560,7 @@ fn main() {
|
||||||
|
|
||||||
// Defined by libattr not libc on linux (hard to test).
|
// Defined by libattr not libc on linux (hard to test).
|
||||||
// See constant definition for more details.
|
// 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
|
// 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
|
// want to use here for testing. It's originally defined in asm/termbits.h, which is
|
||||||
|
|
|
@ -1458,6 +1458,9 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962;
|
||||||
pub const SIOCGIFMAP: ::c_ulong = 0x00008970;
|
pub const SIOCGIFMAP: ::c_ulong = 0x00008970;
|
||||||
pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
|
pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
|
||||||
|
|
||||||
|
// Similarity to Linux it's not used but defined for compatibility.
|
||||||
|
pub const ENOATTR: ::c_int = ::ENODATA;
|
||||||
|
|
||||||
f! {
|
f! {
|
||||||
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
|
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
|
||||||
for slot in cpuset.__bits.iter_mut() {
|
for slot in cpuset.__bits.iter_mut() {
|
||||||
|
|
Loading…
Reference in New Issue