]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: include: don't include proxy-t.h in global-t.h
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Jun 2020 14:25:48 +0000 (16:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:59 +0000 (10:18 +0200)
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

index 5cfe0b9ad2618809a05dc5a665b936d055be8414..cf8ac1bc55b81c7713d1d732d306491b065053d8 100644 (file)
@@ -28,8 +28,6 @@
 #include <haproxy/vars-t.h>
 #include <haproxy/mworker-t.h>
 
-#include <haproxy/proxy-t.h>
-
 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);