sqlite: update to 3.13.0
[unleashed-userland.git] / components / database / sqlite / patches / sqlite3-03-posix_fallocate64.patch
blobbb182052010e0c08a96a7685041643a884dedf4c
1 --- a/sqlite3.c 2011-06-08 14:50:51.185910263 +0800
2 +++ b/sqlite3.c 2011-06-08 14:51:57.485764632 +0800
3 @@ -24491,7 +24491,11 @@
4 #define osFchmod ((int(*)(int,mode_t))aSyscall[14].pCurrent)
6 #if defined(HAVE_POSIX_FALLOCATE) && HAVE_POSIX_FALLOCATE
7 +#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
8 + { "fallocate", (sqlite3_syscall_ptr)posix_fallocate64, 0 },
9 +#else
10 { "fallocate", (sqlite3_syscall_ptr)posix_fallocate, 0 },
11 +#endif
12 #else
13 { "fallocate", (sqlite3_syscall_ptr)0, 0 },
14 #endif