From: claudio Date: Tue, 17 Jan 2023 16:11:52 +0000 (+0000) Subject: Add a dummy stub for getmonotime(). Reminded by tb@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0f5e1a03e1205ad6c8fa4b5fbb37b02abf67a282;p=openbsd Add a dummy stub for getmonotime(). Reminded by tb@ --- 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); +}