[master] 0f1b1c031 mgt: Avoid needless cache_acceptor.h includes

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Thu Jun 19 17:08:06 UTC 2025


commit 0f1b1c0318077002c7a0e9f77845ab291eb2a778
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Jun 11 09:11:37 2025 +0200

    mgt: Avoid needless cache_acceptor.h includes
    
    We don't need a complete struct acceptor definition to satisfy
    mgt_acceptor.h declarations.

diff --git a/bin/varnishd/acceptor/mgt_acceptor.h b/bin/varnishd/acceptor/mgt_acceptor.h
index ed9d4354d..d61088577 100644
--- a/bin/varnishd/acceptor/mgt_acceptor.h
+++ b/bin/varnishd/acceptor/mgt_acceptor.h
@@ -43,6 +43,8 @@ struct listen_arg {
 	const struct uds_perms		*perms;
 };
 
+struct acceptor;
+
 void VCA_Add(struct acceptor *);
 void VCA_Config(void);
 
diff --git a/bin/varnishd/mgt/mgt_child.c b/bin/varnishd/mgt/mgt_child.c
index ae08c54e6..149926797 100644
--- a/bin/varnishd/mgt/mgt_child.c
+++ b/bin/varnishd/mgt/mgt_child.c
@@ -47,7 +47,6 @@
 #include <sys/resource.h>
 
 #include "mgt.h"
-#include "acceptor/cache_acceptor.h"
 #include "acceptor/mgt_acceptor.h"
 
 #include "vapi/vsig.h"
diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 933a9d93a..3aab45395 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -47,7 +47,6 @@
 #include <sys/socket.h>
 
 #include "mgt/mgt.h"
-#include "acceptor/cache_acceptor.h"
 #include "acceptor/mgt_acceptor.h"
 #include "common/heritage.h"
 


More information about the varnish-commit mailing list