Skip to content

Commit

Permalink
Merge pull request #87 from petevine/master
Browse files Browse the repository at this point in the history
Fix compilation on arm using stable rust 1.5
  • Loading branch information
ogham committed Dec 15, 2015
2 parents f2143d9 + 734c508 commit 47b088d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/feature/xattr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ mod lister {
};

unsafe {
listxattr(c_path.as_ptr(), ptr::null_mut(), 0)
listxattr(c_path.as_ptr() as *const _, ptr::null_mut(), 0)
}
}

Expand All @@ -228,7 +228,7 @@ mod lister {

unsafe {
listxattr(
c_path.as_ptr(),
c_path.as_ptr() as *const _,
buf.as_mut_ptr() as *mut c_char,
bufsize as size_t
)
Expand All @@ -243,7 +243,7 @@ mod lister {

unsafe {
getxattr(
c_path.as_ptr(),
c_path.as_ptr() as *const _,
buf.as_ptr() as *const c_char,
ptr::null_mut(), 0
)
Expand Down

1 comment on commit 47b088d

@MagaTailor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, that leaves just the users crate suffering from the same issue in rust 1.6. (due to which exa doesn't compile)
rust-lang/rust#29867

Please sign in to comment.