]> granicus.if.org Git - curl/commitdiff
sasl: only enable if there's a protocol enabled using it
authorDaniel Stenberg <daniel@haxx.se>
Sun, 5 May 2019 15:08:21 +0000 (17:08 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 May 2019 06:17:10 +0000 (08:17 +0200)
lib/curl_sasl.c

index f5d8e8f4b5bc42d32c90992d6c34840e60394a19..6707c40c519850e9dd0bf79dd68d5a7acf2c7634 100644 (file)
@@ -31,6 +31,9 @@
 
 #include "curl_setup.h"
 
+#if !defined(CURL_DISABLE_IMAP) || !defined(CURL_DISABLE_SMTP) || \
+  !defined(CURL_DISABLE_POP3)
+
 #include <curl/curl.h>
 #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 */