aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-05-05 17:08:21 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-05-13 08:17:10 +0200
commite5b546b3397aa4fcd4ae5af71360f98f1b4768b6 (patch)
tree5c42aa31225de984ed480304aa808ee2ffcc3cac /lib
parentb95456f4e26b602a027433f06cbff33e7afa3317 (diff)
sasl: only enable if there's a protocol enabled using it
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_sasl.c4
1 files changed, 4 insertions, 0 deletions
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 <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 */