diff options
author | drh <drh@noemail.net> | 2011-06-20 18:00:17 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-06-20 18:00:17 +0000 |
commit | dbe4b88aacfc1092dcdf4d34ce0dcfc32647fb95 (patch) | |
tree | f5f0bdba7aec09e330a56e794103d0a722261d59 /src/os_unix.c | |
parent | 4f529e87fe436948a062ab2aca13a785536e59df (diff) | |
download | sqlite-dbe4b88aacfc1092dcdf4d34ce0dcfc32647fb95.tar.gz sqlite-dbe4b88aacfc1092dcdf4d34ce0dcfc32647fb95.zip |
Rework the autoconf script to better deal with utime() and dlopen().
FossilOrigin-Name: f69ed286ffb3f62f5cb5c1f7df55fa4d2468b472
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 5860ae71a..682e74c95 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -138,6 +138,10 @@ # include <sys/mount.h> #endif +#ifdef HAVE_UTIME +# include <utime.h> +#endif + /* ** Allowed values of unixFile.fsFlags */ @@ -1939,8 +1943,10 @@ static int dotlockLock(sqlite3_file *id, int eFileLock) { */ if( pFile->eFileLock > NO_LOCK ){ pFile->eFileLock = eFileLock; -#if !OS_VXWORKS /* Always update the timestamp on the old file */ +#ifdef HAVE_UTIME + utime(zLockFile, NULL); +#else utimes(zLockFile, NULL); #endif return SQLITE_OK; |