Skip to content

Commit 0f2ef41

Browse files
committed
Add ENOATTR for Linux
1 parent 19f3be3 commit 0f2ef41

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ fn main() {
171171
if !uclibc {
172172
// optionally included in uclibc
173173
cfg.header("sys/xattr.h");
174+
cfg.header("attr/xattr.h");
174175
}
175176
cfg.header("sys/ipc.h");
176177
cfg.header("sys/msg.h");
@@ -496,7 +497,7 @@ fn main() {
496497
// clash so it can't be tested
497498
"getxattr" | "lgetxattr" | "fgetxattr" | "setxattr" | "lsetxattr" | "fsetxattr" |
498499
"listxattr" | "llistxattr" | "flistxattr" | "removexattr" | "lremovexattr" |
499-
"fremovexattr" |
500+
"fremovexattr" | "ENOATTR" |
500501
"backtrace" |
501502
"sysinfo" | "newlocale" | "duplocale" | "freelocale" | "uselocale" |
502503
"nl_langinfo_l" | "wcslen" | "wcstombs" if uclibc => true,

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,3 +1016,5 @@ cfg_if! {
10161016
pub use self::other::*;
10171017
}
10181018
}
1019+
1020+
pub const ENOATTR: ::c_int = ::ENODATA;

0 commit comments

Comments
 (0)