From bd9ec0844c970f42c252068e061abb04c4064f3e Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Sat, 17 Feb 2018 21:38:35 +0100 Subject: [PATCH] only enable pread/pwrite for linux. fixes #533 and fixes #532 --- sqlite3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index 3ca538d..e47d4f8 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -9,7 +9,8 @@ package sqlite3 /* #cgo CFLAGS: -std=gnu99 -#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE=1 -DHAVE_USLEEP=1 -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1 +#cgo CFLAGS: -DSQLITE_ENABLE_RTREE -DSQLITE_THREADSAFE=1 -DHAVE_USLEEP=1 +#cgo linux CFLAGS: -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1 #cgo CFLAGS: -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4_UNICODE61 #cgo CFLAGS: -DSQLITE_TRACE_SIZE_LIMIT=15 #cgo CFLAGS: -DSQLITE_DISABLE_INTRINSIC