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/rocksdb/0002-fix-android.patch | |
Diffstat (limited to 'vcpkg/ports/rocksdb/0002-fix-android.patch')
| -rw-r--r-- | vcpkg/ports/rocksdb/0002-fix-android.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/rocksdb/0002-fix-android.patch b/vcpkg/ports/rocksdb/0002-fix-android.patch new file mode 100644 index 0000000..3fbf0d8 --- /dev/null +++ b/vcpkg/ports/rocksdb/0002-fix-android.patch @@ -0,0 +1,16 @@ + env/io_posix.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/env/io_posix.h b/env/io_posix.h +index 60788df9b..8ddfb3456 100644 +--- a/env/io_posix.h ++++ b/env/io_posix.h +@@ -30,7 +30,7 @@ + // For non linux platform, the following macros are used only as place + // holder. + #if !(defined OS_LINUX) && !(defined OS_FREEBSD) && !(defined CYGWIN) && \ +- !(defined OS_AIX) && !(defined OS_ANDROID) ++ !(defined OS_AIX) && !(defined OS_ANDROID && __ANDROID_API__ >= 23) + #define POSIX_FADV_NORMAL 0 /* [MC1] no further special treatment */ + #define POSIX_FADV_RANDOM 1 /* [MC1] expect random page refs */ + #define POSIX_FADV_SEQUENTIAL 2 /* [MC1] expect sequential page refs */ |