From e5b546b3397aa4fcd4ae5af71360f98f1b4768b6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 5 May 2019 17:08:21 +0200 Subject: [PATCH] sasl: only enable if there's a protocol enabled using it --- lib/curl_sasl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index f5d8e8f4b5..6707c40c51 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 */