aboutsummaryrefslogtreecommitdiff
path: root/src/event/ngx_event_quic.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-07-22 14:48:49 +0300
committerSergey Kandaurov <pluknet@nginx.com>2020-07-22 14:48:49 +0300
commitca0b9871bc74d7d4548d76eb4d4c2a3a5ebb22ec (patch)
tree13fe09ce469e1a2ce973305d2e7b93db8764a524 /src/event/ngx_event_quic.c
parent5468904e3be8d1f85ba51de51e01747fa02ea6d7 (diff)
downloadnginx-ca0b9871bc74d7d4548d76eb4d4c2a3a5ebb22ec.tar.gz
nginx-ca0b9871bc74d7d4548d76eb4d4c2a3a5ebb22ec.zip
QUIC: fixed bulding perl module by reducing header pollution.
The ngx_http_perl_module module doesn't have a notion of including additional search paths through --with-cc-opt, which results in compile error incomplete type 'enum ssl_encryption_level_t' when building nginx without QUIC support. The enum is visible from quic event headers and eventually pollutes ngx_core.h. The fix is to limit including headers to compile units that are real consumers.
Diffstat (limited to 'src/event/ngx_event_quic.c')
-rw-r--r--src/event/ngx_event_quic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index 202c0082a..9a8c94243 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -7,6 +7,8 @@
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
+#include <ngx_event_quic_transport.h>
+#include <ngx_event_quic_protection.h>
/* 0-RTT and 1-RTT data exist in the same packet number space,