From: Steve Holme Date: Fri, 10 May 2019 12:08:04 +0000 (+0100) Subject: http_negotiate: Don't expose functions when HTTP is disabled X-Git-Tag: curl-7_65_0~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb243b0475c2a3a60889120ee3f05380e60645f0;p=thirdparty%2Fcurl.git http_negotiate: Don't expose functions when HTTP is disabled --- diff --git a/lib/http_negotiate.h b/lib/http_negotiate.h index d4a7f09e09..1197036b25 100644 --- a/lib/http_negotiate.h +++ b/lib/http_negotiate.h @@ -22,7 +22,7 @@ * ***************************************************************************/ -#ifdef USE_SPNEGO +#if !defined(CURL_DISABLE_HTTP) && defined(USE_SPNEGO) /* this is for Negotiate header input */ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy, @@ -33,6 +33,6 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy); void Curl_cleanup_negotiate(struct connectdata *conn); -#endif /* USE_SPNEGO */ +#endif /* !CURL_DISABLE_HTTP && USE_SPNEGO */ #endif /* HEADER_CURL_HTTP_NEGOTIATE_H */