From 1f85ebd7c47a1d3581d3e14eaf90d50d53bfce13 Mon Sep 17 00:00:00 2001 From: Denis Fondras Date: Mon, 25 Oct 2021 17:02:17 +0200 Subject: [PATCH] Allow building on OpenBSD (#976) --- sqlite3.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlite3.go b/sqlite3.go index d72bcb3..5982f8e 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -21,6 +21,8 @@ package sqlite3 #cgo CFLAGS: -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT #cgo CFLAGS: -Wno-deprecated-declarations #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 #include #else