Hi all, I've ran into some issues running sqlite on Android when handling files larger than 4Gb. Support for this counts on glibc style large file support where off_t and off64_t are identical. In bionic (Android C runtime) this is not the case. off_t is always 32-bit; for 64-bit offsets off64_t and the corresponding 64 bit variants of functions must be used (ftruncate64, pread64, pwrite64, ...).
The attached patch modifies os_unix.c to count less on off_t being a 64-bit value. Could someone review this and if approved integrate this upstream? Sincerely, Pepijn Van Eeckhoudt
_______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users