From 4f663ec0228ffc4d47422e2618b844182b30d919 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 5 Jun 2020 16:25:48 +0200 Subject: [PATCH] CLEANUP: include: don't include proxy-t.h in global-t.h We only need a forward declaration here to avoid embarking lots of files, and by just doing this we reduce the build size by 3.5%. --- include/haproxy/global.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/haproxy/global.h b/include/haproxy/global.h index 5cfe0b9ad..cf8ac1bc5 100644 --- a/include/haproxy/global.h +++ b/include/haproxy/global.h @@ -28,8 +28,6 @@ #include #include -#include - extern struct global global; extern int pid; /* current process id */ extern int relative_pid; /* process id starting at 1 */ @@ -60,6 +58,8 @@ extern int atexit_flag; extern unsigned char boot_seed[20]; // per-boot random seed (160 bits initially) extern THREAD_LOCAL struct buffer trash; +struct proxy; +struct server; int main(int argc, char **argv); void deinit(void); void run_poll_loop(void);