]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: quic: Several compiler warns fixes after retry module creation
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 Nov 2023 10:37:44 +0000 (11:37 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 28 Nov 2023 14:47:18 +0000 (15:47 +0100)
Such a warning appeared after having added quic_retry.h which includes only
headers for types (quic_cid-t.h, clock-t.h...)

In file included from include/haproxy/quic_retry.h:12,
                 from src/quic_retry.c:5:
include/haproxy/quic_cid-t.h:26:26: error: field ‘seq_num’ has incomplete type
   26 |         struct eb64_node seq_num;

include/haproxy/quic_cid-t.h
include/haproxy/quic_sock-t.h
include/haproxy/quic_tls-t.h

index d355baeaef08e76736b76bba4b259d5e60ac380e..ccce84497d3046c0280e2983b6ce86673b29198d 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _HAPROXY_QUIC_CID_T_H
 #define _HAPROXY_QUIC_CID_T_H
 
+#include <import/ebtree-t.h>
 #include <haproxy/quic_tp-t.h>
 
 /* QUIC connection ID maximum length for version 1. */
index e2992c834a63f519fc1d444d43f1a263f65f5411..67a5749298107e096bb6624aad5966cbd31122d1 100644 (file)
@@ -2,6 +2,8 @@
 #define _HAPROXY_QUIC_SOCK_T_H
 #ifdef USE_QUIC
 
+#include <haproxy/buf-t.h>
+
 /* QUIC socket allocation strategy. */
 enum quic_sock_mode {
        QUIC_SOCK_MODE_CONN,  /* Use a dedicated socket per connection. */
index e74e5a95592573e4bf6ef30e00a6e79de87995b2..ae65149b533e549d5f9782b04d90dfc7e23018a2 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <import/ebtree.h>
 
+#include <haproxy/ncbuf-t.h>
 #include <haproxy/quic_ack-t.h>
 #include <haproxy/openssl-compat.h>