File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ if [ "$QEMU" != "" ]; then
91
91
-nographic \
92
92
-vga none 2>&1 | tee $CARGO_TARGET_DIR /out.log
93
93
exec grep " ^PASSED .* tests" $CARGO_TARGET_DIR /out.log
94
+ elif type apt-get & > /dev/null; then
95
+ sudo apt-get install libattr1-dev
94
96
fi
95
97
96
98
case " $TARGET " in
Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ fn main() {
171
171
if !uclibc {
172
172
// optionally included in uclibc
173
173
cfg. header ( "sys/xattr.h" ) ;
174
+ cfg. header ( "attr/xattr.h" ) ;
174
175
}
175
176
cfg. header ( "sys/ipc.h" ) ;
176
177
cfg. header ( "sys/msg.h" ) ;
@@ -496,7 +497,7 @@ fn main() {
496
497
// clash so it can't be tested
497
498
"getxattr" | "lgetxattr" | "fgetxattr" | "setxattr" | "lsetxattr" | "fsetxattr" |
498
499
"listxattr" | "llistxattr" | "flistxattr" | "removexattr" | "lremovexattr" |
499
- "fremovexattr" |
500
+ "fremovexattr" | "ENOATTR" |
500
501
"backtrace" |
501
502
"sysinfo" | "newlocale" | "duplocale" | "freelocale" | "uselocale" |
502
503
"nl_langinfo_l" | "wcslen" | "wcstombs" if uclibc => true ,
Original file line number Diff line number Diff line change @@ -700,6 +700,8 @@ 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
+ pub const ENOATTR : :: c_int = :: ENODATA ;
704
+
703
705
f ! {
704
706
pub fn CPU_ZERO ( cpuset: & mut cpu_set_t) -> ( ) {
705
707
for slot in cpuset. bits. iter_mut( ) {
You can’t perform that action at this time.
0 commit comments