$OpenBSD: patch-third_party_sqlite_BUILD_gn,v 1.1 2016/10/27 18:30:41 robert Exp $
--- third_party/sqlite/BUILD.gn.orig.port	Sun Aug 14 20:22:54 2016
+++ third_party/sqlite/BUILD.gn	Mon Aug 15 16:18:50 2016
@@ -125,7 +125,7 @@ if (!use_system_sqlite) {
 
     # Pull in config.h on Linux.  This allows use of preprocessor macros which
     # are not available to the build config.
-    if (is_linux) {
+    if (is_linux && !is_openbsd) {
       defines += [ "_HAVE_SQLITE_CONFIG_H" ]
     }
 
@@ -140,7 +140,7 @@ if (!use_system_sqlite) {
       ":sqlite_warnings",
     ]
 
-    if (is_linux) {
+    if (is_linux && !is_openbsd) {
       libs = [ "dl" ]
     } else if (is_mac || is_ios) {
       libs = [
