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:
DL6ER
2019-01-22 17:26:25 +01:00
parent 9d0346a424
commit 608458edfd
4 changed files with 5 additions and 3 deletions
+1 -3
View File
@@ -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;
+2
View File
@@ -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; })
+1
View File
@@ -10,6 +10,7 @@
#include "FTL.h"
#include "shmem.h"
#include "sqlite3.h"
static sqlite3 *db;
bool database = false;
+1
View File
@@ -10,6 +10,7 @@
#include "FTL.h"
#include "shmem.h"
#include "sqlite3.h"
#define ARPCACHE "/proc/net/arp"
// Private prototypes