public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.7.5-utimes.patch
@ 2011-02-06 14:03 Arfrever Frehtes Taifersar Arahesis (arfrever)
  0 siblings, 0 replies; only message in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2011-02-06 14:03 UTC (permalink / raw
  To: gentoo-commits

arfrever    11/02/06 14:03:29

  Added:                sqlite-3.7.5-utimes.patch
  Log:
  Version bump (bug #353772). Fix building on FreeMiNT (bug #344353). Fixed building of tests with USE="-threadsafe" (bug #348435).
  
  (Portage version: 2.2.0_alpha20/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-db/sqlite/files/sqlite-3.7.5-utimes.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/files/sqlite-3.7.5-utimes.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/files/sqlite-3.7.5-utimes.patch?rev=1.1&content-type=text/plain

Index: sqlite-3.7.5-utimes.patch
===================================================================
--- configure.ac
+++ configure.ac
@@ -127,7 +127,7 @@
 #########
 # Figure out whether or not we have these functions
 #
-AC_CHECK_FUNCS([usleep fdatasync localtime_r gmtime_r localtime_s])
+AC_CHECK_FUNCS([usleep utimes fdatasync localtime_r gmtime_r localtime_s])
 
 #########
 # By default, we use the amalgamation (this may be changed below...)
--- src/os_unix.c
+++ src/os_unix.c
@@ -122,6 +122,9 @@
 #ifndef SQLITE_OMIT_WAL
 #include <sys/mman.h>
 #endif
+#ifndef HAVE_UTIMES
+#include <utime.h>
+#endif
 
 #if SQLITE_ENABLE_LOCKING_STYLE
 # include <sys/ioctl.h>
@@ -1610,7 +1613,11 @@
     pFile->eFileLock = eFileLock;
 #if !OS_VXWORKS
     /* Always update the timestamp on the old file */
+#ifdef HAVE_UTIMES
     utimes(zLockFile, NULL);
+#else
+    utime(zLockFile, NULL);
+#endif
 #endif
     return SQLITE_OK;
   }






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-06 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-06 14:03 [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.7.5-utimes.patch Arfrever Frehtes Taifersar Arahesis (arfrever)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox