File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ package sqlite3
22
22
#cgo CFLAGS: -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
23
23
#cgo CFLAGS: -Wno-deprecated-declarations
24
24
#cgo darwin LDFLAGS: -framework Security
25
- #cgo linux,!android CFLAGS: -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1
26
25
#cgo openbsd CFLAGS: -I/usr/local/include
27
26
#cgo openbsd LDFLAGS: -L/usr/local/lib
28
27
#cgo amd64 CFLAGS: -maes -msse4.1
@@ -50,6 +49,18 @@ package sqlite3
50
49
# define SQLITE_DETERMINISTIC 0
51
50
#endif
52
51
52
+ #if defined(HAVE_PREAD64) && defined(HAVE_PWRITE64)
53
+ # undef USE_PREAD
54
+ # undef USE_PWRITE
55
+ # define USE_PREAD64 1
56
+ # define USE_PWRITE64 1
57
+ #elif defined(HAVE_PREAD) && defined(HAVE_PWRITE)
58
+ # undef USE_PREAD
59
+ # undef USE_PWRITE
60
+ # define USE_PREAD64 1
61
+ # define USE_PWRITE64 1
62
+ #endif
63
+
53
64
static int
54
65
_sqlite3_open_v2(const char *filename, sqlite3 **ppDb, int flags, const char *zVfs) {
55
66
#ifdef SQLITE_OPEN_URI
You can’t perform that action at this time.
0 commit comments