Skip to content

Commit 3d5c968

Browse files
committed
exchangedata is osx only, fix the function signature
1 parent 019f429 commit 3d5c968

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,9 @@ extern {
24792479
pub fn renameatx_np(fromfd: ::c_int, from: *const ::c_char,
24802480
tofd: ::c_int, to: *const ::c_char,
24812481
flags: ::c_uint) -> ::c_int;
2482+
pub fn exchangedata(path1: *const ::c_char,
2483+
path2: *const ::c_char,
2484+
options: ::c_long) -> ::c_int;
24822485
pub fn fremovexattr(filedes: ::c_int, name: *const ::c_char,
24832486
flags: ::c_int) -> ::c_int;
24842487

src/unix/bsd/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,6 @@ extern {
401401
pub fn getpeereid(socket: ::c_int,
402402
euid: *mut ::uid_t,
403403
egid: *mut ::gid_t) -> ::c_int;
404-
pub fn exchangedata(path1: *const ::c_char,
405-
path2: *const ::c_char,
406-
options: ::c_uint) -> ::c_int;
407404

408405
#[cfg_attr(target_os = "macos", link_name = "glob$INODE64")]
409406
#[cfg_attr(target_os = "netbsd", link_name = "__glob30")]

0 commit comments

Comments
 (0)