mirror of https://github.com/mattn/go-sqlite3.git
Allow building on OpenBSD (#976)
This commit is contained in:
parent
628398eed2
commit
1f85ebd7c4
|
@ -21,6 +21,8 @@ package sqlite3
|
||||||
#cgo CFLAGS: -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
|
#cgo CFLAGS: -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
|
||||||
#cgo CFLAGS: -Wno-deprecated-declarations
|
#cgo CFLAGS: -Wno-deprecated-declarations
|
||||||
#cgo linux,!android CFLAGS: -DHAVE_PREAD64=1 -DHAVE_PWRITE64=1
|
#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
|
#ifndef USE_LIBSQLITE3
|
||||||
#include <sqlite3-binding.h>
|
#include <sqlite3-binding.h>
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue