mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Only include sqlite3.h in those files that need it. This should improve the compiling time slightly
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -36,8 +36,6 @@
|
||||
#include <pwd.h>
|
||||
// syslog
|
||||
#include <syslog.h>
|
||||
// SQLite
|
||||
#include "sqlite3.h"
|
||||
// tolower()
|
||||
#include <ctype.h>
|
||||
// Unix socket
|
||||
@@ -174,7 +172,7 @@ typedef struct {
|
||||
int domainID;
|
||||
int clientID;
|
||||
int forwardID;
|
||||
sqlite3_int64 db;
|
||||
int64_t db;
|
||||
int id; // the ID is a (signed) int in dnsmasq, so no need for a long int here
|
||||
bool complete;
|
||||
unsigned char privacylevel;
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#include "FTL.h"
|
||||
#include "api.h"
|
||||
#include "version.h"
|
||||
// needed for sqlite3_libversion()
|
||||
#include "sqlite3.h"
|
||||
|
||||
#define min(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); _a < _b ? _a : _b; })
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "FTL.h"
|
||||
#include "shmem.h"
|
||||
#include "sqlite3.h"
|
||||
|
||||
static sqlite3 *db;
|
||||
bool database = false;
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "FTL.h"
|
||||
#include "shmem.h"
|
||||
#include "sqlite3.h"
|
||||
#define ARPCACHE "/proc/net/arp"
|
||||
|
||||
// Private prototypes
|
||||
|
||||
Reference in New Issue
Block a user