From 65ab8d7fca183773465cfa6bde4014c326ac55be Mon Sep 17 00:00:00 2001 From: Tom Dryer Date: Fri, 28 May 2021 16:04:44 -0700 Subject: Disable sendfile64 on android It's not available from libc on that platform. --- src/sys/sendfile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sys/sendfile.rs') 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, -- cgit v1.2.3