From 70f1bed7c88fbb3f06e03dbb9a793a25b96557af Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Thu, 18 Sep 2025 21:16:42 -0400 Subject: [PATCH] Expose SEEK_DATA and SEEK_HOLE on Android Signed-off-by: Andrew Gunnerson --- changelog/2676.added.md | 1 + src/unistd.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog/2676.added.md 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, }