diff --git a/lib/http2.c b/lib/http2.c index e8d31d5ca8ebae9e08b3e71d9b6af4baf66e9d60..d364f3a77478c2d831f47e35a8099a5df93c873b 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -376,6 +376,9 @@ static const nghttp2_session_callbacks callbacks = { on_unknown_frame_recv, /* nghttp2_on_unknown_frame_recv_callback */ on_begin_headers, /* nghttp2_on_begin_headers_callback */ on_header /* nghttp2_on_header_callback */ +#if NGHTTP2_VERSION_NUM >= 0x000400 + , NULL /* nghttp2_select_padding_callback */ +#endif }; static ssize_t data_source_read_callback(nghttp2_session *session,