diff options
author | Amanieu d'Antras <amanieu@gmail.com> | 2020-08-05 14:44:49 +0100 |
---|---|---|
committer | Amanieu d'Antras <amanieu@gmail.com> | 2020-08-22 21:22:08 +0100 |
commit | 344c3c7e7a4a46b3d99a43950742132bcd0ed706 (patch) | |
tree | 48869805c4be76063233bcb581a2e9f8199663a9 /src | |
parent | 99f5c5b957c93fb093b431538f230fcb93d93f7b (diff) | |
download | nix-344c3c7e7a4a46b3d99a43950742132bcd0ed706.zip |
Expose SeekData and SeekHole on all Linux targets
These were previously missing on musl and mips targets because of
missing definitions in the libc crate.
Diffstat (limited to 'src')
-rw-r--r-- | src/unistd.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index d53b438c..5df3dbde 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1018,20 +1018,14 @@ pub enum Whence { /// Specify an offset relative to the next location in the file greater than or /// equal to offset that contains some data. If offset points to /// some data, then the file offset is set to offset. - #[cfg(any(target_os = "dragonfly", target_os = "freebsd", - all(target_os = "linux", not(any(target_env = "musl", - target_arch = "mips", - target_arch = "mips64")))))] + #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))] SeekData = libc::SEEK_DATA, /// Specify an offset relative to the next hole in the file greater than /// or equal to offset. If offset points into the middle of a hole, then /// the file offset should be set to offset. If there is no hole past offset, /// then the file offset should be adjusted to the end of the file (i.e., there /// is an implicit hole at the end of any file). - #[cfg(any(target_os = "dragonfly", target_os = "freebsd", - all(target_os = "linux", not(any(target_env = "musl", - target_arch = "mips", - target_arch = "mips64")))))] + #[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))] SeekHole = libc::SEEK_HOLE } |