Add getmonotime() to test-http.c so that the test compiles again.
authorclaudio <claudio@openbsd.org>
Fri, 5 Nov 2021 08:20:36 +0000 (08:20 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 5 Nov 2021 08:20:36 +0000 (08:20 +0000)
Noticed as ususal by anton@

regress/usr.sbin/rpki-client/test-http.c

index 827edb7..e1482a3 100644 (file)
@@ -25,6 +25,16 @@ logx(const char *fmt, ...)
        va_end(ap);
 }
 
+time_t
+getmonotime(void)
+{
+       struct timespec ts;
+
+       if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0)
+               err(1, "clock_gettime");
+       return (ts.tv_sec);
+}
+
 static void
 http_request(size_t id, const char *uri, const char *last_mod, int fd)
 {