From fa0eeedf3542f10ea39c71908f3ed0fe6224ec05 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Tue, 21 Jul 2015 13:55:39 +0200 Subject: http2: satisfy external references even if http2 is not compiled in. --- lib/http2.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/lib/http2.c b/lib/http2.c index 0ac9c4b12..0001fae5d 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1549,4 +1549,25 @@ CURLcode Curl_http2_switched(struct connectdata *conn, return CURLE_OK; } -#endif +#else /* !USE_NGHTTP2 */ + +/* Satisfy external references even if http2 is not compiled in. */ + +#define CURL_DISABLE_TYPECHECK +#include + +char *curl_pushheader_bynum(struct curl_pushheaders *h, size_t num) +{ + (void) h; + (void) num; + return NULL; +} + +char *curl_pushheader_byname(struct curl_pushheaders *h, const char *header) +{ + (void) h; + (void) header; + return NULL; +} + +#endif /* USE_NGHTTP2 */ -- cgit v1.2.3