aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-10-13 16:02:17 +0000
committerdrh <drh@noemail.net>2011-10-13 16:02:17 +0000
commit36f7dd3f0bece64a1d0f94e128a80271eeaaff12 (patch)
treef46fefcf187008cec24273f970568dd5e4217f65 /src
parent6b93c9ae24e599fa949beab0356d919dce14374e (diff)
downloadsqlite-36f7dd3f0bece64a1d0f94e128a80271eeaaff12.tar.gz
sqlite-36f7dd3f0bece64a1d0f94e128a80271eeaaff12.zip
Enable large-file support for fopen() and friends in the command-line shell.
Ticket [92af7da36b6fbd] FossilOrigin-Name: eeeba4f0d2207ec26c60a405e2705e5d40022dbb
Diffstat (limited to 'src')
-rw-r--r--src/shell.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index db9295c6e..1b58bd275 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 <stdlib.h>
#include <string.h>
#include <stdio.h>