diff options
author | Jordan <me@jordan.im> | 2023-12-16 17:41:01 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-12-16 17:41:01 -0700 |
commit | 7ecc048ae012a631bc3f0dcbd62f6190384ea0cd (patch) | |
tree | f8dd09feb67af740fb92d13c458e602f9bee8d45 /vendor/github.com/mattn/go-sqlite3/sqlite3.go | |
parent | a3dac1a28fdc9e42d85c4686858c64597cf1a15b (diff) | |
download | keep-7ecc048ae012a631bc3f0dcbd62f6190384ea0cd.tar.gz keep-7ecc048ae012a631bc3f0dcbd62f6190384ea0cd.zip |
Diffstat (limited to 'vendor/github.com/mattn/go-sqlite3/sqlite3.go')
-rw-r--r-- | vendor/github.com/mattn/go-sqlite3/sqlite3.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vendor/github.com/mattn/go-sqlite3/sqlite3.go b/vendor/github.com/mattn/go-sqlite3/sqlite3.go index 5e4e2ff..5764182 100644 --- a/vendor/github.com/mattn/go-sqlite3/sqlite3.go +++ b/vendor/github.com/mattn/go-sqlite3/sqlite3.go @@ -21,7 +21,6 @@ package sqlite3 #cgo CFLAGS: -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1 #cgo CFLAGS: -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT #cgo CFLAGS: -Wno-deprecated-declarations -#cgo linux,!android CFLAGS: -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1 #cgo openbsd CFLAGS: -I/usr/local/include #cgo openbsd LDFLAGS: -L/usr/local/lib #ifndef USE_LIBSQLITE3 @@ -48,6 +47,18 @@ package sqlite3 # define SQLITE_DETERMINISTIC 0 #endif +#if defined(HAVE_PREAD64) && defined(HAVE_PWRITE64) +# undef USE_PREAD +# undef USE_PWRITE +# define USE_PREAD64 1 +# define USE_PWRITE64 1 +#elif defined(HAVE_PREAD) && defined(HAVE_PWRITE) +# undef USE_PREAD +# undef USE_PWRITE +# define USE_PREAD64 1 +# define USE_PWRITE64 1 +#endif + static int _sqlite3_open_v2(const char *filename, sqlite3 **ppDb, int flags, const char *zVfs) { #ifdef SQLITE_OPEN_URI |