From 62693fe830799113802738c4ffb85fe8b82bd236 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 28 Aug 2020 17:55:54 +0000 Subject: [PATCH] Treat the boot loader as the same as the kernel for what's visible The boot loader will be growing some (limited) support for some kernel interfaces for some of the timekeeping routines to support zstd code. Allow the declarations for them to be visible when compiling for the boot loader, rather than treating it like a user-space environment (which stand.h already provides to a limited degree). --- sys/sys/time.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/time.h b/sys/sys/time.h index fb55bfefd85e..9bffca204d56 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -492,7 +492,7 @@ struct clockinfo { #define CPUCLOCK_WHICH_TID 1 #endif -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_STANDALONE) /* * Kernel to clock driver interface. @@ -600,7 +600,7 @@ int tvtohz(struct timeval *tv); (((sbt2) >= sbt_timethreshold) ? \ ((*(sbt) = getsbinuptime()), 1) : ((*(sbt) = sbinuptime()), 0)) -#else /* !_KERNEL */ +#else /* !_KERNEL && !_STANDALONE */ #include #include