diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/7zip/fix_timespec_get_broken_on_android.patch | |
Diffstat (limited to 'vcpkg/ports/7zip/fix_timespec_get_broken_on_android.patch')
| -rw-r--r-- | vcpkg/ports/7zip/fix_timespec_get_broken_on_android.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/7zip/fix_timespec_get_broken_on_android.patch b/vcpkg/ports/7zip/fix_timespec_get_broken_on_android.patch new file mode 100644 index 0000000..2b0cad7 --- /dev/null +++ b/vcpkg/ports/7zip/fix_timespec_get_broken_on_android.patch @@ -0,0 +1,13 @@ +diff --git a/CPP/Windows/TimeUtils.cpp b/CPP/Windows/TimeUtils.cpp +index bbd79ba..8df3ea3 100644 +--- a/CPP/Windows/TimeUtils.cpp ++++ b/CPP/Windows/TimeUtils.cpp +@@ -259,7 +259,7 @@ bool GetSecondsSince1601(unsigned year, unsigned month, unsigned day, + Cygwin 2.9, mingw, MSVC 14, Android 9.0. + Android NDK defines TIME_UTC but doesn't have the timespec_get(). + */ +-#if defined(TIME_UTC) && !defined(__ANDROID__) ++#if defined(TIME_UTC) && (!defined(__ANDROID__) || __ANDROID_API__ >= 29) + #define ZIP7_USE_timespec_get + // #pragma message("ZIP7_USE_timespec_get") + #elif defined(CLOCK_REALTIME) |