From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-db/sqlite/files: sqlite-3.7.5-utimes.patch |
Date: | Sun, 06 Feb 2011 14:03:40 |
Message-Id: | 20110206140329.4F0D120054@flycatcher.gentoo.org |
1 | arfrever 11/02/06 14:03:29 |
2 | |
3 | Added: sqlite-3.7.5-utimes.patch |
4 | Log: |
5 | Version bump (bug #353772). Fix building on FreeMiNT (bug #344353). Fixed building of tests with USE="-threadsafe" (bug #348435). |
6 | |
7 | (Portage version: 2.2.0_alpha20/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-db/sqlite/files/sqlite-3.7.5-utimes.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/sqlite/files/sqlite-3.7.5-utimes.patch?rev=1.1&view=markup |
13 | 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 |
14 | |
15 | Index: sqlite-3.7.5-utimes.patch |
16 | =================================================================== |
17 | --- configure.ac |
18 | +++ configure.ac |
19 | @@ -127,7 +127,7 @@ |
20 | ######### |
21 | # Figure out whether or not we have these functions |
22 | # |
23 | -AC_CHECK_FUNCS([usleep fdatasync localtime_r gmtime_r localtime_s]) |
24 | +AC_CHECK_FUNCS([usleep utimes fdatasync localtime_r gmtime_r localtime_s]) |
25 | |
26 | ######### |
27 | # By default, we use the amalgamation (this may be changed below...) |
28 | --- src/os_unix.c |
29 | +++ src/os_unix.c |
30 | @@ -122,6 +122,9 @@ |
31 | #ifndef SQLITE_OMIT_WAL |
32 | #include <sys/mman.h> |
33 | #endif |
34 | +#ifndef HAVE_UTIMES |
35 | +#include <utime.h> |
36 | +#endif |
37 | |
38 | #if SQLITE_ENABLE_LOCKING_STYLE |
39 | # include <sys/ioctl.h> |
40 | @@ -1610,7 +1613,11 @@ |
41 | pFile->eFileLock = eFileLock; |
42 | #if !OS_VXWORKS |
43 | /* Always update the timestamp on the old file */ |
44 | +#ifdef HAVE_UTIMES |
45 | utimes(zLockFile, NULL); |
46 | +#else |
47 | + utime(zLockFile, NULL); |
48 | +#endif |
49 | #endif |
50 | return SQLITE_OK; |
51 | } |