File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,10 @@ fn main() {
404
404
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |
405
405
"MAP_STACK" | "RTLD_DEEPBIND" | "SOL_IPV6" | "SOL_ICMPV6" if uclibc => true ,
406
406
407
+ // Defined by libattr not libc on linux (hard to test).
408
+ // See constant definition for more details.
409
+ "ENOATTR" if linux => true ,
410
+
407
411
_ => false ,
408
412
}
409
413
} ) ;
Original file line number Diff line number Diff line change @@ -700,6 +700,11 @@ pub const PR_CAP_AMBIENT_CLEAR_ALL: ::c_int = 4;
700
700
pub const XATTR_CREATE : :: c_int = 0x1 ;
701
701
pub const XATTR_REPLACE : :: c_int = 0x2 ;
702
702
703
+ // On Linux, libc doesn't define this constant, libattr does instead.
704
+ // We still define it for Linux as it's defined by libc on other platforms,
705
+ // and it's mentioned in the man pages for getxattr and setxattr.
706
+ pub const ENOATTR : :: c_int = :: ENODATA ;
707
+
703
708
f ! {
704
709
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
705
710
for slot in cpuset. bits. iter_mut( ) {
You can’t perform that action at this time.
0 commit comments