On 09/11/2017 05:20 AM, Mark Sibly wrote:
Hi,
I just encountered a problem trying to build the sqlite amalgamation
package for android with the latest NDK (v15.2.4203891) on windows 10.
The compiler couldn't find mmap, which was causing a ton of errors.
I solved it by sticking this at the top-ish of sqlite3.c
#if __ANDROID__
#include <sys/mman.h>
#endif
Thanks for reporting this. Which version are you trying to build?
Are you building with any special options - SQLITE_OMIT_WAL or similar?
When things are working right, sys/mman.h should be included if required
by the amalgamation equivalent of this line:
http://www.sqlite.org/src/artifact/489aa972ccc34?ln=99
Can you post the first couple of compiler errors?
Dan.
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users