summaryrefslogtreecommitdiff
path: root/lib9p
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p')
-rw-r--r--lib9p/tests/test_server/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib9p/tests/test_server/main.c b/lib9p/tests/test_server/main.c
index f4b21db..b979a4b 100644
--- a/lib9p/tests/test_server/main.c
+++ b/lib9p/tests/test_server/main.c
@@ -10,6 +10,7 @@
#include <libcr/coroutine.h>
#include <libhw/generic/net.h>
#include <libhw/generic/alarmclock.h>
+#include <libhw/host_alarmclock.h>
#include <libhw/host_net.h>
#include <libmisc/macro.h>
#include <util9p/static.h>
@@ -193,6 +194,11 @@ static COROUTINE init_cr(void *) {
}
int main() {
+ struct hostclock clock_monotonic = {
+ .vtable = &hostclock_vtable,
+ .clock_id = CLOCK_MONOTONIC,
+ };
+ bootclock = &clock_monotonic;
coroutine_add("init", init_cr, NULL);
coroutine_main();
return 0;