Skip to content

Commit 0a05411

Browse files
committed
Add fdatasync,pread,pwrite support to osx
1 parent c0a5180 commit 0a05411

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/basic/main

4.23 MB
Binary file not shown.

sqlite3/sqlite3.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ package sqlite3
4646
4747
#cgo linux,!android CFLAGS: -DHAVE_FDATASYNC=1
4848
#cgo linux,!android CFLAGS: -DHAVE_PREAD=1 -DHAVE_PWRITE=1
49+
#cgo darwin CFLAGS: -DHAVE_FDATASYNC=1
50+
#cgo darwin CFLAGS: -DHAVE_PREAD=1 -DHAVE_PWRITE=1
4951
5052
#cgo windows LDFLAGS: -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
5153

0 commit comments

Comments
 (0)