From: Patrick Monnerat Date: Tue, 21 Jul 2015 11:55:39 +0000 (+0200) Subject: http2: satisfy external references even if http2 is not compiled in. X-Git-Tag: curl-7_44_0~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa0eeedf3542f10ea39c71908f3ed0fe6224ec05;p=thirdparty%2Fcurl.git http2: satisfy external references even if http2 is not compiled in. --- diff --git a/lib/http2.c b/lib/http2.c index 0ac9c4b12a..0001fae5df 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 */