Skip to content

Commit 6759de3

Browse files
committed
Minimal "include" cleanup in utility files
1 parent 6b5b061 commit 6759de3

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

include/gen_utils.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33

44
#include <memory>
55
#include <queue>
6-
#include "proxysql.h"
7-
#include "sqlite3db.h"
6+
7+
#include "proxysql_structs.h"
8+
#include "proxysql_mem.h"
9+
10+
#include "mysql.h"
811

912
#define MIN_ARRAY_LEN 8
1013
#define MIN_ARRAY_DELETE_RATIO 8

include/proxysql_coredump.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#ifndef __PROXYSQL_COREDUMP_H
22
#define __PROXYSQL_COREDUMP_H
3+
34
#include <unordered_set>
5+
#include <string>
46

57
#define S1(x) #x
68
#define S2(x) S1(x)

include/proxysql_debug.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#ifndef __PROXYSQL_DEBUG_H
22
#define __PROXYSQL_DEBUG_H
33

4-
#include <chrono>
5-
#include <iostream>
6-
#include <atomic>
7-
84
#include "proxysql_macros.h"
95

106
#if ENABLE_TIMER // this is defined in proxysql_macros.h

lib/gen_utils.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#include <vector>
22
#include <memory>
33
#include <sstream>
4-
#include "gen_utils.h"
54

5+
#include "sys/stat.h"
6+
7+
#include "gen_utils.h"
8+
#include "sqlite3db.h"
69

710
using std::vector;
811
using std::unique_ptr;

lib/proxysql_coredump.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#include <string>
22
#include <unordered_set>
3+
#include <unistd.h>
34

4-
#include "proxysql_coredump.h"
5+
#include "proxysql.h"
56
#include "gen_utils.h"
7+
68
#if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || defined(__mips__)) && defined(__linux)
79
// currently only support x86-32, x86-64, ARM, and MIPS on Linux
810
#include "coredumper/coredumper.h"

0 commit comments

Comments
 (0)