Add a dummy stub for getmonotime(). Reminded by tb@
authorclaudio <claudio@openbsd.org>
Tue, 17 Jan 2023 16:11:52 +0000 (16:11 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 17 Jan 2023 16:11:52 +0000 (16:11 +0000)
regress/usr.sbin/bgpd/unittests/rde_aspa_test.c

index ca75c57..0467783 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rde_aspa_test.c,v 1.2 2023/01/12 08:47:07 claudio Exp $ */
+/*     $OpenBSD: rde_aspa_test.c,v 1.3 2023/01/17 16:11:52 claudio Exp $ */
 
 /*
  * Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org>
@@ -691,3 +691,9 @@ print_state(struct aspa_state *a, struct aspa_state *b)
        if (a->ndown_np != b->ndown_np)
                printf(" ndown_np %d != %d", a->ndown_np, b->ndown_np);
 }
+
+time_t
+getmonotime(void)
+{
+       return time(NULL);
+}