From: z2_ <88509734+z2-2z@users.noreply.github.com> Date: Sat, 2 Dec 2023 00:09:29 +0000 (+0100) Subject: build: fix builds that disable protocols but not digest auth X-Git-Tag: curl-8_5_0~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c44671ed431aa3d40819e59f63c471be158480a7;p=thirdparty%2Fcurl.git build: fix builds that disable protocols but not digest auth - Build base64 functions if digest auth is not disabled. Prior to this change if some protocols were disabled but not digest auth then a build error would occur due to missing base64 functions. Fixes https://github.com/curl/curl/issues/12440 Closes https://github.com/curl/curl/pull/12442 --- diff --git a/lib/base64.c b/lib/base64.c index 2a49b5acd6..919eb62359 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -31,6 +31,7 @@ !defined(CURL_DISABLE_SMTP) || \ !defined(CURL_DISABLE_POP3) || \ !defined(CURL_DISABLE_IMAP) || \ + !defined(CURL_DISABLE_DIGEST_AUTH) || \ !defined(CURL_DISABLE_DOH) || defined(USE_SSL) || defined(BUILDING_CURL) #include "curl/curl.h" #include "warnless.h"