diff options
author | Daniel Stenberg <daniel@haxx.se> | 2014-02-28 23:26:43 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2014-02-28 23:26:43 +0100 |
commit | 53f1f4a18ee7e3ac5fbe44a0e16b33b27465432b (patch) | |
tree | 51053c9369e2e7bcc6b18b021de1fb78e3158907 | |
parent | bd248a0b8020dde767dca1a46a727c89ae14ee5e (diff) |
http2: build with current nghttp2 version
nghttp2 has yet again extended its callback struct and this is an
attempt to make curl compile with nghttp2 from current git
-rw-r--r-- | lib/http2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c index e8d31d5ca..d364f3a77 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, |