diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-05 17:08:21 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-13 08:17:10 +0200 |
commit | e5b546b3397aa4fcd4ae5af71360f98f1b4768b6 (patch) | |
tree | 5c42aa31225de984ed480304aa808ee2ffcc3cac /lib | |
parent | b95456f4e26b602a027433f06cbff33e7afa3317 (diff) | |
download | curl-e5b546b3397aa4fcd4ae5af71360f98f1b4768b6.tar.gz |
sasl: only enable if there's a protocol enabled using it
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_sasl.c | 4 |
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 */ |