allow building without sqlite3

Changelog-Changed: build: SQLite3 is no longer a hard build requirement. C-Lightning can now be built to support only the PostgreSQL back-end.
This commit is contained in:
Matt Whitlock
2020-08-29 04:13:52 -04:00
committed by Christian Decker
parent c1aa33a62a
commit abbc712afb
7 changed files with 34 additions and 14 deletions

View File

@@ -2,10 +2,10 @@
#include "gen_db_sqlite3.c"
#include <ccan/ccan/tal/str/str.h>
#include <lightningd/log.h>
#include <sqlite3.h>
#include <stdio.h>
#if HAVE_SQLITE3
#include <sqlite3.h>
#if !HAVE_SQLITE3_EXPANDED_SQL
/* Prior to sqlite3 v3.14, we have to use tracing to dump statements */