]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: buffer: types/{ring.h,checks.h} should include buf.h, not buffer.h
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Mar 2020 17:40:31 +0000 (18:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 7 Mar 2020 05:07:18 +0000 (06:07 +0100)
buffer.h relies on proto/activity because it contains some code and not
just type definitions. It must not be included from types files. It
should probably also be split in two if it starts to include a proto.
This causes some circular dependencies at other places.

include/types/checks.h
include/types/ring.h

index 03d2305774ea205a92efdb516887346ff9057e99..73650480c182e56a5a543f87a2aa0a1dca6861d4 100644 (file)
@@ -18,7 +18,7 @@
 #include <common/config.h>
 #include <common/mini-clist.h>
 #include <common/regex.h>
-#include <common/buffer.h>
+#include <common/buf.h>
 
 #include <types/connection.h>
 #include <types/obj_type.h>
index 86c507ff82e5532b4286e776c6bd32cc4c61415c..5f0827171190c53057ea6b0228779b4f44d02cf0 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _TYPES_RING_H
 #define _TYPES_RING_H
 
-#include <common/buffer.h>
+#include <common/buf.h>
 #include <common/compat.h>
 #include <common/config.h>
 #include <common/ist.h>