mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 12:47:03 +02:00
daily-report.php fix
This commit is contained in:
16
src/defs.h
16
src/defs.h
@ -8,15 +8,8 @@
|
||||
#ifdef NEED_MYSQL
|
||||
#include <mysql.h>
|
||||
#endif
|
||||
#ifdef NEED_SQLITE3
|
||||
#include <sqlite3.h>
|
||||
|
||||
/* for older versions of sqlite3 do not have the sqlite3_prepare_v2() function, 2009.12.30, SJ */
|
||||
|
||||
#if SQLITE_VERSION_NUMBER < 3006000
|
||||
#define sqlite3_prepare_v2 sqlite3_prepare
|
||||
#endif
|
||||
|
||||
#ifdef NEED_PSQL
|
||||
#include <libpq-fe.h>
|
||||
#endif
|
||||
#ifdef HAVE_TRE
|
||||
#include <tre/tre.h>
|
||||
@ -202,8 +195,9 @@ struct session_data {
|
||||
#ifdef NEED_MYSQL
|
||||
MYSQL mysql;
|
||||
#endif
|
||||
#ifdef NEED_SQLITE3
|
||||
sqlite3 *db;
|
||||
#ifdef NEED_PSQL
|
||||
PGconn *psql;
|
||||
char conninfo[SMALLBUFSIZE];
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user