From d6a626d5d8f9ab38b09cd42402e06770eb48fdbd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Apr 2025 15:39:44 +0200 Subject: [PATCH] parsedate: provide Curl_wkday also for GnuTLS builds Otherwise --disable-dateparse + --with-gnutls builds might fail. Found with randdisable Closes #16943 --- lib/parsedate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parsedate.c b/lib/parsedate.c index 274e1ff307..29ebd5a133 100644 --- a/lib/parsedate.c +++ b/lib/parsedate.c @@ -106,7 +106,7 @@ static int parsedate(const char *date, time_t *output); #endif #if !defined(CURL_DISABLE_PARSEDATE) || !defined(CURL_DISABLE_FTP) || \ - !defined(CURL_DISABLE_FILE) + !defined(CURL_DISABLE_FILE) || defined(USE_GNUTLS) /* These names are also used by FTP and FILE code */ const char * const Curl_wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};