Skip to content

Commit 56dde29

Browse files
committed
Two variants of exchangedata
1 parent 195d63a commit 56dde29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2471,9 +2471,14 @@ extern {
24712471
pub fn renameatx_np(fromfd: ::c_int, from: *const ::c_char,
24722472
tofd: ::c_int, to: *const ::c_char,
24732473
flags: ::c_uint) -> ::c_int;
2474+
#[cfg(target_arch = "x86")]
24742475
pub fn exchangedata(path1: *const ::c_char,
24752476
path2: *const ::c_char,
2476-
options: u32) -> ::c_int;
2477+
options: ::c_ulong) -> ::c_int;
2478+
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
2479+
pub fn exchangedata(path1: *const ::c_char,
2480+
path2: *const ::c_char,
2481+
options: ::c_uint) -> ::c_int;
24772482
pub fn fremovexattr(filedes: ::c_int, name: *const ::c_char,
24782483
flags: ::c_int) -> ::c_int;
24792484

0 commit comments

Comments
 (0)