--- sqlite-3.6.22.orig/sqlite3.c 2010-01-13 22:28:39 -0800 +++ sqlite-3.6.22/sqlite3.c 2010-01-13 22:36:25 -0800 @@ -21915,7 +21915,9 @@ case ENODEV: case ENXIO: case ENOENT: +#ifndef __INTERIX case ESTALE: +#endif case ENOSYS: /* these should force the client to close the file and reconnect */