From: drh Date: Thu, 13 Oct 2011 16:02:17 +0000 (+0000) Subject: Enable large-file support for fopen() and friends in the command-line shell. X-Git-Tag: version-3.7.9~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36f7dd3f0bece64a1d0f94e128a80271eeaaff12;p=thirdparty%2Fsqlite.git Enable large-file support for fopen() and friends in the command-line shell. Ticket [92af7da36b6fbd] FossilOrigin-Name: eeeba4f0d2207ec26c60a405e2705e5d40022dbb --- diff --git a/manifest b/manifest index 5b66702538..42d8db8180 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Make\ssure\sthe\squery\soptimizer\sfor\saggregate\squeries\sknows\sthat\sexpressions\n(x='a')\sand\s(x='A')\sare\sdifferent.\s\sTicket\s[fa7bf5ec94801e7e] -D 2011-10-13T15:35:52.354 +C Enable\slarge-file\ssupport\sfor\sfopen()\sand\sfriends\sin\sthe\scommand-line\sshell.\nTicket\s[92af7da36b6fbd] +D 2011-10-13T16:02:17.114 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in a162fe39e249b8ed4a65ee947c30152786cfe897 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -180,7 +180,7 @@ F src/random.c cd4a67b3953b88019f8cd4ccd81394a8ddfaba50 F src/resolve.c 36368f44569208fa074e61f4dd0b6c4fb60ca2b4 F src/rowset.c 69afa95a97c524ba6faf3805e717b5b7ae85a697 F src/select.c 94b375306bfb4590fdfd76581ae663f57e94808f -F src/shell.c 2a44834246f0b55fe4673cda749fa0efe4d078e2 +F src/shell.c faba48cc0e93cc5cf3ed807a1301397198656ba1 F src/sqlite.h.in 821027573c481e45ba276b078a3ae9ebaeb9bb92 F src/sqlite3ext.h 1a1a4f784aa9c3b00edd287940197de52487cd93 F src/sqliteInt.h 6f8e592fc28d16160d017684966b3528833a46c1 @@ -968,7 +968,7 @@ F tool/symbols.sh fec58532668296d7c7dc48be9c87f75ccdb5814f F tool/tostr.awk e75472c2f98dd76e06b8c9c1367f4ab07e122d06 F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381 -P 150592b4b4d86372e70332d4f69e41a04c4c54c3 -R 323134b1e783ca1be165bf0fb4b4559e +P e43da426e66e6b63d5ed9610a6308aba0089313b +R 2f8c91247f2bf8554514af942b180667 U drh -Z de56e6160107aa87c1184b3bbf78f940 +Z b6deee099df43353152ea0c675f27bf5 diff --git a/manifest.uuid b/manifest.uuid index 26b91e11b4..4e72dd21c8 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -e43da426e66e6b63d5ed9610a6308aba0089313b \ No newline at end of file +eeeba4f0d2207ec26c60a405e2705e5d40022dbb \ No newline at end of file diff --git a/src/shell.c b/src/shell.c index db9295c6ef..1b58bd2756 100644 --- a/src/shell.c +++ b/src/shell.c @@ -17,6 +17,17 @@ #define _CRT_SECURE_NO_WARNINGS #endif +/* +** Enable large-file support for fopen() and friends on unix. +*/ +#ifndef SQLITE_DISABLE_LFS +# define _LARGE_FILE 1 +# ifndef _FILE_OFFSET_BITS +# define _FILE_OFFSET_BITS 64 +# endif +# define _LARGEFILE_SOURCE 1 +#endif + #include #include #include