From: W.C.A. Wijngaards Date: Fri, 25 Jun 2021 11:37:26 +0000 (+0200) Subject: Analysis workflow, test ctime replacement. X-Git-Tag: release-1.13.2rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66e9317edc01d38a77701a5e4852c50d43a1cf14;p=thirdparty%2Funbound.git Analysis workflow, test ctime replacement. --- diff --git a/testcode/replay.c b/testcode/replay.c index 69f1544db..1dda3d81a 100644 --- a/testcode/replay.c +++ b/testcode/replay.c @@ -687,7 +687,11 @@ do_macro_ctime(char* arg) log_err("macro ctime: expected number, not: %s", arg); return NULL; } +#ifndef HAVE_CTIME_R + unbound_ctime_r(&tt, buf); +#else ctime_r(&tt, buf); +#endif strip_end_white(buf); return strdup(buf); }