summaryrefslogtreecommitdiff
blob: dae98fd653a0dea1803282910ec4f0a5a42c9d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -ru sqlite-3.6.22.orig/src/os_unix.c sqlite-3.6.22/src/os_unix.c
--- sqlite-3.6.22.orig/src/os_unix.c	2010-01-15 09:00:06 +0100
+++ sqlite-3.6.22/src/os_unix.c	2010-01-15 09:01:42 +0100
@@ -436,7 +436,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 */
     
@@ -1862,7 +1864,7 @@
     pFile->locktype = locktype;
 #if !OS_VXWORKS
     /* Always update the timestamp on the old file */
-    utimes(zLockFile, NULL);
+    utime(zLockFile, NULL);
 #endif
     return SQLITE_OK;
   }