From: Daniel Stenberg Date: Sun, 5 May 2019 15:08:21 +0000 (+0200) Subject: sasl: only enable if there's a protocol enabled using it X-Git-Tag: curl-7_65_0~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5b546b3397aa4fcd4ae5af71360f98f1b4768b6;p=curl sasl: only enable if there's a protocol enabled using it --- diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index f5d8e8f4b..6707c40c5 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -31,6 +31,9 @@ #include "curl_setup.h" +#if !defined(CURL_DISABLE_IMAP) || !defined(CURL_DISABLE_SMTP) || \ + !defined(CURL_DISABLE_POP3) + #include #include "urldata.h" @@ -623,3 +626,4 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn, return result; } +#endif /* protocols are enabled that use SASL */