reported and accepted upstream: http://sqlite.org:8080/cgi-bin/mailman/private/sqlite-dev/2011-July/001281.html (archives are private ... :( ) diff -ru sqlite-autoconf-3070701.orig/sqlite3.c sqlite-autoconf-3070701/sqlite3.c --- sqlite-autoconf-3070701.orig/sqlite3.c 2011-07-07 07:49:38 +0200 +++ sqlite-autoconf-3070701/sqlite3.c 2011-07-07 07:50:46 +0200 @@ -25143,7 +25143,9 @@ case ENODEV: case ENXIO: case ENOENT: +#ifdef ESTALE case ESTALE: +#endif case ENOSYS: /* these should force the client to close the file and reconnect */