diff --git a/changelog/2676.added.md b/changelog/2676.added.md new file mode 100644 index 0000000000..ad58ca4471 --- /dev/null +++ b/changelog/2676.added.md @@ -0,0 +1 @@ +Add `SeekData` and `SeekHole` to `Whence` for Android diff --git a/src/unistd.rs b/src/unistd.rs index 8995fbe02e..280b2b2a6b 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -1404,9 +1404,9 @@ pub enum Whence { #[cfg(any( apple_targets, freebsdlike, + linux_android, solarish, target_os = "hurd", - target_os = "linux", ))] SeekData = libc::SEEK_DATA, /// Specify an offset relative to the next hole in the file greater than @@ -1417,9 +1417,9 @@ pub enum Whence { #[cfg(any( apple_targets, freebsdlike, + linux_android, solarish, target_os = "hurd", - target_os = "linux", ))] SeekHole = libc::SEEK_HOLE, }