$OpenBSD: patch-libgda_sqlite_gda-sqlite-pstmt_h,v 1.3 2012/10/02 06:33:07 jasper Exp $

From 7f6c54ad5d4b4f8dc692758da72baf469bf69e4d Mon Sep 17 00:00:00 2001
From: Jasper Lievisse Adriaanse <jasper@humppa.nl>
Date: Tue, 02 Oct 2012 06:28:41 +0000
Subject: Fix inclusion of sqlite headers due to HAVE_SQLITE and STATIC_SQLITE confusion

https://bugzilla.gnome.org/show_bug.cgi?id=674781

--- libgda/sqlite/gda-sqlite-pstmt.h.orig	Tue Apr 24 19:47:33 2012
+++ libgda/sqlite/gda-sqlite-pstmt.h	Tue Apr 24 19:48:27 2012
@@ -21,10 +21,14 @@
 #define __GDA_SQLITE_PSTMT_H__
 
 #include <libgda/providers-support/gda-pstmt.h>
-#ifdef HAVE_SQLITE
-#include <sqlite3.h>
-#else
+#ifdef STATIC_SQLITE
 #include "sqlite-src/sqlite3.h"
+#else
+#  ifdef HAVE_SQLITE
+#    include <sqlite3.h>
+#  else
+#    include "sqlite-src/sqlite3.h"
+#endif
 #endif
 
 G_BEGIN_DECLS
