The HAVE_USLEEP option is passed to sqlite at compilation time, but not reported by the pragma:
$ ~/src/sqlite-amalgamation-3180000 10104 ✫ : gcc -DHAVE_USLEEP=1 -DSQLITE_ENABLE_JSON1 -DTHREADSAFE=0 shell.c sqlite3.c -lpthread -ldl -o sqlite $ ~/src/sqlite-amalgamation-3180000 10129 ✫ : ./sqlite SQLite version 3.18.0 2017-03-28 18:48:43 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite> PRAGMA compile_options; COMPILER=gcc-6.3.0 20170406 DEFAULT_SYNCHRONOUS=2 DEFAULT_WAL_SYNCHRONOUS=2 ENABLE_JSON1 SYSTEM_MALLOC THREADSAFE=0 sqlite> The following patch fixes the problem: sqlite-amalgamation-3180000 $ diff -u sqlite3.c.old sqlite3.c --- sqlite3.c.old 2017-04-13 18:53:34.374481883 +0200 +++ sqlite3.c 2017-04-13 18:53:49.950559120 +0200 @@ -17595,6 +17595,9 @@ #if HAVE_ISNAN || SQLITE_HAVE_ISNAN "HAVE_ISNAN", #endif +#if HAVE_USLEEP + "HAVE_USLEEP", +#endif #if SQLITE_HOMEGROWN_RECURSIVE_MUTEX "HOMEGROWN_RECURSIVE_MUTEX", #endif Author of the patch is drebs (at) leap.se, I'm just reporting it here. More context in this issue: https://0xacab.org/leap/soledad/issues/8835 -- We reject kings, presidents and voting. We believe in rough consensus and working code. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users