diff --git a/lib/altsvc.c b/lib/altsvc.c index bd87af1c87..2ccd22ef47 100644 --- a/lib/altsvc.c +++ b/lib/altsvc.c @@ -665,4 +665,8 @@ bool Curl_altsvc_lookup(struct altsvcinfo *asi, return FALSE; } +#if defined(DEBUGBUILD) || defined(UNITTESTS) +#undef time +#endif + #endif /* !CURL_DISABLE_HTTP && !CURL_DISABLE_ALTSVC */ diff --git a/lib/hsts.c b/lib/hsts.c index cba218153a..91f32276f9 100644 --- a/lib/hsts.c +++ b/lib/hsts.c @@ -580,4 +580,8 @@ void Curl_hsts_loadfiles(struct Curl_easy *data) } } +#if defined(DEBUGBUILD) || defined(UNITTESTS) +#undef time +#endif + #endif /* CURL_DISABLE_HTTP || CURL_DISABLE_HSTS */