File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ dist: trusty
4
4
services :
5
5
- docker
6
6
install :
7
+ - [[ $TRAVIS_OS_NAME = "linux" ]] && sudo apt-get install libattr1-dev
7
8
- if [ -z "$NO_ADD" ]; then rustup target add $TARGET; fi
8
9
script :
9
10
- cargo build
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