]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Analysis workflow, test ctime replacement.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Jun 2021 11:37:26 +0000 (13:37 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Jun 2021 11:37:26 +0000 (13:37 +0200)
testcode/replay.c

index 69f1544db8739c52c0b2112cac7ba81d48e53e4e..1dda3d81acff6c3048ed95bfc0edf419ff3447e7 100644 (file)
@@ -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);
 }