From b39362070d2d5adbe81b49fec3363b752cfb4220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 28 Nov 2023 11:37:44 +0100 Subject: [PATCH] BUILD: quic: Several compiler warns fixes after retry module creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 | 1 + include/haproxy/quic_sock-t.h | 2 ++ include/haproxy/quic_tls-t.h | 1 + 3 files changed, 4 insertions(+) diff --git a/include/haproxy/quic_cid-t.h b/include/haproxy/quic_cid-t.h index d355baeae..ccce84497 100644 --- a/include/haproxy/quic_cid-t.h +++ b/include/haproxy/quic_cid-t.h @@ -1,6 +1,7 @@ #ifndef _HAPROXY_QUIC_CID_T_H #define _HAPROXY_QUIC_CID_T_H +#include #include /* QUIC connection ID maximum length for version 1. */ diff --git a/include/haproxy/quic_sock-t.h b/include/haproxy/quic_sock-t.h index e2992c834..67a574929 100644 --- a/include/haproxy/quic_sock-t.h +++ b/include/haproxy/quic_sock-t.h @@ -2,6 +2,8 @@ #define _HAPROXY_QUIC_SOCK_T_H #ifdef USE_QUIC +#include + /* QUIC socket allocation strategy. */ enum quic_sock_mode { QUIC_SOCK_MODE_CONN, /* Use a dedicated socket per connection. */ diff --git a/include/haproxy/quic_tls-t.h b/include/haproxy/quic_tls-t.h index e74e5a955..ae65149b5 100644 --- a/include/haproxy/quic_tls-t.h +++ b/include/haproxy/quic_tls-t.h @@ -21,6 +21,7 @@ #include +#include #include #include