From c37a5eba8c5a8a4c40a5e5d41590fb0566d6708d Mon Sep 17 00:00:00 2001 From: Lomanic <5020919+Lomanic@users.noreply.github.com> Date: Wed, 9 Oct 2024 00:14:19 +0200 Subject: [PATCH] [cpu][netbsd] Fix "undefined: cpuTimes" error at compile time on arm Fixes #1645 --- cpu/cpu_netbsd_arm.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cpu/cpu_netbsd_arm.go diff --git a/cpu/cpu_netbsd_arm.go b/cpu/cpu_netbsd_arm.go new file mode 100644 index 000000000..e4799bcf5 --- /dev/null +++ b/cpu/cpu_netbsd_arm.go @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: BSD-3-Clause +package cpu + +type cpuTimes struct { + User uint32 + Nice uint32 + Sys uint32 + Intr uint32 + Idle uint32 +}