aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-04-18 13:09:55 +0000
committerdrh <drh@noemail.net>2016-04-18 13:09:55 +0000
commitf9986d90d1f2e627ee36befc445e1645910f82f8 (patch)
tree6d78c49dc21f2eca924104f3cad2ea14aa9a3678 /src/os_unix.c
parenteacd29d4849d34ca1a3bf31dbb9e8ee98f85dec8 (diff)
downloadsqlite-f9986d90d1f2e627ee36befc445e1645910f82f8.tar.gz
sqlite-f9986d90d1f2e627ee36befc445e1645910f82f8.zip
The last parameter to pread64() and pwrite64() should be off64_t, not off_t.
FossilOrigin-Name: 3a7d72986fabe9434ff5bd02c93169314f072b23
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index a797541e8..aa86f00d7 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -405,7 +405,7 @@ static struct unix_syscall {
#else
{ "pread64", (sqlite3_syscall_ptr)0, 0 },
#endif
-#define osPread64 ((ssize_t(*)(int,void*,size_t,off_t))aSyscall[10].pCurrent)
+#define osPread64 ((ssize_t(*)(int,void*,size_t,off64_t))aSyscall[10].pCurrent)
{ "write", (sqlite3_syscall_ptr)write, 0 },
#define osWrite ((ssize_t(*)(int,const void*,size_t))aSyscall[11].pCurrent)
@@ -423,7 +423,7 @@ static struct unix_syscall {
#else
{ "pwrite64", (sqlite3_syscall_ptr)0, 0 },
#endif
-#define osPwrite64 ((ssize_t(*)(int,const void*,size_t,off_t))\
+#define osPwrite64 ((ssize_t(*)(int,const void*,size_t,off64_t))\
aSyscall[13].pCurrent)
{ "fchmod", (sqlite3_syscall_ptr)fchmod, 0 },