$OpenBSD: patch-third_party_sqlite_BUILD_gn,v 1.4 2017/09/09 19:16:43 robert Exp $
Index: third_party/sqlite/BUILD.gn
--- third_party/sqlite/BUILD.gn.orig
+++ third_party/sqlite/BUILD.gn
@@ -127,7 +127,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" ]
     }
 
@@ -161,7 +161,7 @@ if (!use_system_sqlite) {
       ":sqlite_warnings",
     ]
 
-    if (is_linux) {
+    if (is_linux && !is_openbsd) {
       libs = [ "dl" ]
     } else if (is_mac || is_ios) {
       libs = [
