summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordebris <marek.kotewicz@gmail.com>2018-08-14 16:20:15 +0200
committerdebris <marek.kotewicz@gmail.com>2018-08-14 16:20:15 +0200
commit56dde29582adc9bf7cdc802a0e162c1f307662c6 (patch)
tree9032d7e3dd162e706ddc950d6c815c9a08a42554
parent195d63a017ce70f30d76f8f0112c0450d22277f2 (diff)
downloadrust-libc-56dde29582adc9bf7cdc802a0e162c1f307662c6.tar.gz
Two variants of exchangedata
-rw-r--r--src/unix/bsd/apple/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index 204fff6979..7324a344bb 100644
--- a/src/unix/bsd/apple/mod.rs
+++ b/src/unix/bsd/apple/mod.rs
@@ -2471,9 +2471,14 @@ extern {
pub fn renameatx_np(fromfd: ::c_int, from: *const ::c_char,
tofd: ::c_int, to: *const ::c_char,
flags: ::c_uint) -> ::c_int;
+ #[cfg(target_arch = "x86")]
pub fn exchangedata(path1: *const ::c_char,
path2: *const ::c_char,
- options: u32) -> ::c_int;
+ options: ::c_ulong) -> ::c_int;
+ #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
+ pub fn exchangedata(path1: *const ::c_char,
+ path2: *const ::c_char,
+ options: ::c_uint) -> ::c_int;
pub fn fremovexattr(filedes: ::c_int, name: *const ::c_char,
flags: ::c_int) -> ::c_int;