summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/fs/sendfile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/fs/sendfile.rs')
-rw-r--r--vendor/rustix/src/fs/sendfile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/rustix/src/fs/sendfile.rs b/vendor/rustix/src/fs/sendfile.rs
index 472ad37b2..7f5c8482d 100644
--- a/vendor/rustix/src/fs/sendfile.rs
+++ b/vendor/rustix/src/fs/sendfile.rs
@@ -7,7 +7,7 @@ use backend::fd::AsFd;
/// - [Linux]
///
/// [Linux]: https://man7.org/linux/man-pages/man2/sendfile.2.html
-#[cfg(any(target_os = "android", target_os = "linux"))]
+#[cfg(linux_kernel)]
#[inline]
pub fn sendfile<OutFd: AsFd, InFd: AsFd>(
out_fd: OutFd,