Skip to content

Commit b5283e5

Browse files
committed
Fix BusyTimeout on *nix.
1 parent e59f389 commit b5283e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go1/sqlite3/sqlite3.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ package sqlite3
2424
#cgo CFLAGS: -DSQLITE_OMIT_TRACE=1
2525
#cgo CFLAGS: -DSQLITE_OMIT_UTF16=1
2626
27+
// Fix for BusyTimeout on *nix systems.
28+
#cgo !windows CFLAGS: -DHAVE_USLEEP=1
29+
2730
// Temporary fix for "fchmod undeclared" error. Seems to cause segmentation
2831
// faults on Windows (signal 0xc0000005 code=0x8 addr=0x617ee0 pc=0x617ee0).
2932
// [http://www.sqlite.org/cgi/src/info/61a1045239]

0 commit comments

Comments
 (0)