summaryrefslogtreecommitdiff
path: root/src/sys/sendfile.rs
diff options
context:
space:
mode:
authorTom Dryer <tomdryer.com@gmail.com>2021-05-28 16:04:44 -0700
committerTom Dryer <tomdryer.com@gmail.com>2021-05-28 16:04:44 -0700
commit65ab8d7fca183773465cfa6bde4014c326ac55be (patch)
treeb3b4bba7bb1f8c5301f3aa2445130899e93c5b73 /src/sys/sendfile.rs
parent81c9e2d9a84ff8c5d147c321d0a48249891bb1ea (diff)
downloadnix-65ab8d7fca183773465cfa6bde4014c326ac55be.zip
Disable sendfile64 on android
It's not available from libc on that platform.
Diffstat (limited to 'src/sys/sendfile.rs')
-rw-r--r--src/sys/sendfile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/sendfile.rs b/src/sys/sendfile.rs
index 0f64749a..a12c0411 100644
--- a/src/sys/sendfile.rs
+++ b/src/sys/sendfile.rs
@@ -45,7 +45,7 @@ pub fn sendfile(
/// `in_fd` must support `mmap`-like operations and therefore cannot be a socket.
///
/// For more information, see [the sendfile(2) man page.](https://man7.org/linux/man-pages/man2/sendfile.2.html)
-#[cfg(any(target_os = "android", target_os = "linux"))]
+#[cfg(target_os = "linux")]
pub fn sendfile64(
out_fd: RawFd,
in_fd: RawFd,