Skip to content

Commit

Permalink
Use 3 arguments listxattr() on non-macOS Unix
Browse files Browse the repository at this point in the history
In order to support *BSD especially.
  • Loading branch information
iquiw committed Apr 29, 2023
1 parent 6913115 commit 33d918f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs/xattr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ unsafe fn has_xattrs(path: &Path) -> bool {
slice_ptr.cast::<c_char>()
};

#[cfg(target_os = "linux")]
#[cfg(not(target_os = "macos"))]
return 0 < listxattr(path_ptr, ptr::null_mut::<c_char>(), 0);

#[cfg(target_os = "macos")]
Expand Down

0 comments on commit 33d918f

Please sign in to comment.