]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
parsedate: provide Curl_wkday also for GnuTLS builds
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 13:39:44 +0000 (15:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2025 14:00:17 +0000 (16:00 +0200)
Otherwise --disable-dateparse + --with-gnutls builds might fail.

Found with randdisable

Closes #16943

lib/parsedate.c

index 274e1ff3074cd5871e62585e8a57d07dc85a701c..29ebd5a133864f001c8ebe2965da756148643120 100644 (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"};