diff --git a/src/bin/fips-gateway.rs b/src/bin/fips-gateway.rs index def8029e..6a6979fb 100644 --- a/src/bin/fips-gateway.rs +++ b/src/bin/fips-gateway.rs @@ -55,6 +55,7 @@ fn main() { /// Microseconds since `started`, saturating, for the timing fields on debug /// lines. +#[cfg(target_os = "linux")] fn elapsed_us(started: Instant) -> u64 { u64::try_from(started.elapsed().as_micros()).unwrap_or(u64::MAX) }