From 5aec4a5da32e9a1fad1a89f17b10d676d4312895 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 29 Jul 2019 22:46:20 +0200 Subject: Improve NetBSD port. (#361) Detect and link against ossaudio. Comment out unused code and functions. --- src/print_cpu_usage.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/print_cpu_usage.c') diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c index 7de42f9..979e082 100644 --- a/src/print_cpu_usage.c +++ b/src/print_cpu_usage.c @@ -46,7 +46,9 @@ struct cpu_usage { int total; }; +#if defined(__linux__) static int cpu_count = 0; +#endif static struct cpu_usage prev_all = {0, 0, 0, 0, 0}; static struct cpu_usage *prev_cpus = NULL; static struct cpu_usage *curr_cpus = NULL; -- cgit v1.2.3