diff options
author | Thomas Klausner <tk@giga.or.at> | 2019-07-29 22:46:20 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2019-07-29 13:46:20 -0700 |
commit | 5aec4a5da32e9a1fad1a89f17b10d676d4312895 (patch) | |
tree | 58b31dc403b238690e5dd3f6a994b2c7d7320d36 /src/print_cpu_usage.c | |
parent | e84f9588dfca3023f77fcc7d320c70945d852f9d (diff) |
Improve NetBSD port. (#361)
Detect and link against ossaudio.
Comment out unused code and functions.
Diffstat (limited to 'src/print_cpu_usage.c')
-rw-r--r-- | src/print_cpu_usage.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |