Introduce common SQLite header

The header declares the missing v2 handle closing function for older
versions of SQLite.
This commit is contained in:
Markus Mäkelä
2017-01-04 14:21:37 +02:00
parent 5a290cb0b8
commit 2e074f4eb4
4 changed files with 28 additions and 8 deletions

View File

@ -32,16 +32,11 @@
#include <maxscale/pcre2.h>
#include <maxavro.h>
#include <binlog_common.h>
#include <sqlite3.h>
#include <maxscale/sqlite3.h>
#include <maxscale/protocol/mysql.h>
MXS_BEGIN_DECLS
/** SQLite3 version 3.7.14 introduced the new v2 close interface */
#if SQLITE_VERSION_NUMBER < 3007014
#define sqlite3_close_v2 sqlite3_close
#endif
/**
* How often to call the router status function (seconds)
*/