From 694889ac2d20ae6c7449b6097211583f9d4bbbd5 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Thu, 14 Sep 2023 16:26:58 +0200 Subject: [PATCH] BUILD: quic: fix build on centos 8 and USE_QUIC_OPENSSL_COMPAT When using USE_QUIC_OPENSSL_COMPAT=1 on centos-8 the build fail this way: In file included from src/quic_openssl_compat.c:11: /usr/include/openssl/kdf.h:33:46: error: unknown type name 'va_list' int EVP_KDF_vctrl(EVP_KDF_CTX *ctx, int cmd, va_list args); This is because of openssl/kdf.h being include before openssl-compat.h --- src/quic_openssl_compat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/quic_openssl_compat.c b/src/quic_openssl_compat.c index 99661377e2..2accb32937 100644 --- a/src/quic_openssl_compat.c +++ b/src/quic_openssl_compat.c @@ -6,11 +6,10 @@ #error "Must define USE_OPENSSL" #endif +#include /* Highly inspired from nginx QUIC TLS compatibilty code */ - #include -#include #include #include #include