From 0f5e1a03e1205ad6c8fa4b5fbb37b02abf67a282 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 17 Jan 2023 16:11:52 +0000 Subject: [PATCH] Add a dummy stub for getmonotime(). Reminded by tb@ --- regress/usr.sbin/bgpd/unittests/rde_aspa_test.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/regress/usr.sbin/bgpd/unittests/rde_aspa_test.c b/regress/usr.sbin/bgpd/unittests/rde_aspa_test.c index ca75c570508..04677832f95 100644 --- a/regress/usr.sbin/bgpd/unittests/rde_aspa_test.c +++ b/regress/usr.sbin/bgpd/unittests/rde_aspa_test.c @@ -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 @@ -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); +} -- 2.20.1