exchangedata is osx only, fix the function signature

This commit is contained in:
debris 2018-08-01 10:36:41 +02:00
parent 019f429ee9
commit 3d5c968b20
2 changed files with 3 additions and 3 deletions

View File

@ -2479,6 +2479,9 @@ extern {
pub fn renameatx_np(fromfd: ::c_int, from: *const ::c_char,
tofd: ::c_int, to: *const ::c_char,
flags: ::c_uint) -> ::c_int;
pub fn exchangedata(path1: *const ::c_char,
path2: *const ::c_char,
options: ::c_long) -> ::c_int;
pub fn fremovexattr(filedes: ::c_int, name: *const ::c_char,
flags: ::c_int) -> ::c_int;

View File

@ -401,9 +401,6 @@ extern {
pub fn getpeereid(socket: ::c_int,
euid: *mut ::uid_t,
egid: *mut ::gid_t) -> ::c_int;
pub fn exchangedata(path1: *const ::c_char,
path2: *const ::c_char,
options: ::c_uint) -> ::c_int;
#[cfg_attr(target_os = "macos", link_name = "glob$INODE64")]
#[cfg_attr(target_os = "netbsd", link_name = "__glob30")]