Skip to content

Commit ac56590

Browse files
committed
Add ENOATTR for Android
1 parent 8a9b980 commit ac56590

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/notbsd/android/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,9 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962;
14581458
pub const SIOCGIFMAP: ::c_ulong = 0x00008970;
14591459
pub const SIOCSIFMAP: ::c_ulong = 0x00008971;
14601460

1461+
// Similarity to Linux it's not used but defined for compatibility.
1462+
pub const ENOATTR: ::c_int = ::ENODATA;
1463+
14611464
f! {
14621465
pub fn CPU_ZERO(cpuset: &mut cpu_set_t) -> () {
14631466
for slot in cpuset.__bits.iter_mut() {

0 commit comments

Comments
 (0)