From: Willy Tarreau Date: Fri, 5 Jun 2020 14:25:48 +0000 (+0200) Subject: CLEANUP: include: don't include proxy-t.h in global-t.h X-Git-Tag: v2.2-dev9~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f663ec0228ffc4d47422e2618b844182b30d919;p=thirdparty%2Fhaproxy.git 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%. --- diff --git a/include/haproxy/global.h b/include/haproxy/global.h index 5cfe0b9ad2..cf8ac1bc55 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);