$OpenBSD: patch-libgda_sqlite_gda-sqlite-pstmt_h,v 1.2 2012/04/25 09:48:10 jasper Exp $

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
