parsedate: provide Curl_wkday also for GnuTLS builds

Otherwise --disable-dateparse + --with-gnutls builds might fail.

Found with randdisable

Closes #16943
This commit is contained in:
Daniel Stenberg 2025-04-03 15:39:44 +02:00
parent 3d4e4a1874
commit d6a626d5d8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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"};