diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-19 12:41:30 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-09-21 17:31:25 +0200 |
| commit | dcea7709f2ce1be35ba241e923850b1099ceb906 (patch) | |
| tree | cba79acb5e56b9bb2de8f75a3ad7510410e0f101 /library/std/src/sys/unix/kernel_copy.rs | |
| parent | ae9c330629f1fb03a636cb8af367fead024793db (diff) | |
| download | rust-dcea7709f2ce1be35ba241e923850b1099ceb906.tar.gz rust-dcea7709f2ce1be35ba241e923850b1099ceb906.zip | |
added support for GNU/Hurd
Diffstat (limited to 'library/std/src/sys/unix/kernel_copy.rs')
| -rw-r--r-- | library/std/src/sys/unix/kernel_copy.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/kernel_copy.rs b/library/std/src/sys/unix/kernel_copy.rs index 4d17a1b0002..18acd5ecccd 100644 --- a/library/std/src/sys/unix/kernel_copy.rs +++ b/library/std/src/sys/unix/kernel_copy.rs @@ -59,9 +59,9 @@ use crate::ptr; use crate::sync::atomic::{AtomicBool, AtomicU8, Ordering}; use crate::sys::cvt; use crate::sys::weak::syscall; -#[cfg(not(all(target_os = "linux", target_env = "gnu")))] +#[cfg(not(any(all(target_os = "linux", target_env = "gnu"), target_os = "hurd")))] use libc::sendfile as sendfile64; -#[cfg(all(target_os = "linux", target_env = "gnu"))] +#[cfg(any(all(target_os = "linux", target_env = "gnu"), target_os = "hurd"))] use libc::sendfile64; use libc::{EBADF, EINVAL, ENOSYS, EOPNOTSUPP, EOVERFLOW, EPERM, EXDEV}; |
