From 1520cae6f63c3c72dfc924c834172a80095df6c0 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Tue, 5 Mar 2024 17:37:07 +0800 Subject: [PATCH] Enable support for AIX fallocate --- src/unix/async_impl.rs | 1 + src/unix/sync_impl.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/unix/async_impl.rs b/src/unix/async_impl.rs index 2321ba32..e2d565a8 100644 --- a/src/unix/async_impl.rs +++ b/src/unix/async_impl.rs @@ -1,6 +1,7 @@ macro_rules! allocate { ($file: ty) => { #[cfg(any( + target_os = "aix", target_os = "linux", target_os = "freebsd", target_os = "android", diff --git a/src/unix/sync_impl.rs b/src/unix/sync_impl.rs index eb9bbccc..f9d27142 100644 --- a/src/unix/sync_impl.rs +++ b/src/unix/sync_impl.rs @@ -34,6 +34,7 @@ pub fn allocate(file: &File, len: u64) -> std::io::Result<()> { } #[cfg(any( + target_os = "aix", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly",