diff --git a/modules/http2/h2.h b/modules/http2/h2.h index cfecb3d9a39..06e7087c048 100644 --- a/modules/http2/h2.h +++ b/modules/http2/h2.h @@ -20,6 +20,8 @@ #include #include +#include + struct h2_session; struct h2_stream; @@ -39,7 +41,7 @@ struct h2_stream; #define H2_USE_POLLFD_FROM_CONN 0 #endif -#if H2_USE_PIPES +#if H2_USE_PIPES && defined(NGHTTP2_VERSION_NUM) && NGHTTP2_VERSION_NUM >= 0x012200 #define H2_USE_WEBSOCKETS 1 #else #define H2_USE_WEBSOCKETS 0