1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Rework the autoconf script to better deal with utime() and dlopen().

FossilOrigin-Name: f69ed286ffb3f62f5cb5c1f7df55fa4d2468b472
This commit is contained in:
drh
2011-06-20 18:00:17 +00:00
parent 4f529e87fe
commit dbe4b88aac
6 changed files with 112 additions and 14 deletions

View File

@@ -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;