File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ fn main() {
560
560
561
561
// Defined by libattr not libc on linux (hard to test).
562
562
// See constant definition for more details.
563
- "ENOATTR" if linux => true ,
563
+ "ENOATTR" if android || linux => true ,
564
564
565
565
// On mips*-unknown-linux-gnu* CMSPAR cannot be included with the set of headers we
566
566
// want to use here for testing. It's originally defined in asm/termbits.h, which is
Original file line number Diff line number Diff line change @@ -1458,6 +1458,9 @@ pub const SIOCSRARP: ::c_ulong = 0x00008962;
1458
1458
pub const SIOCGIFMAP : :: c_ulong = 0x00008970 ;
1459
1459
pub const SIOCSIFMAP : :: c_ulong = 0x00008971 ;
1460
1460
1461
+ // Similarity to Linux it's not used but defined for compatibility.
1462
+ pub const ENOATTR : :: c_int = :: ENODATA ;
1463
+
1461
1464
f ! {
1462
1465
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
1463
1466
for slot in cpuset. __bits. iter_mut( ) {
You can’t perform that action at this time.
0 commit comments