openbsd-ports/x11/polybar/patches/patch-include_modules_cpu_hpp
jasper 770a755850 update to polybar-3.5.4
from Guy Godfroy with a change to disable i3
2021-02-27 12:03:43 +00:00

20 lines
538 B
Plaintext

$OpenBSD: patch-include_modules_cpu_hpp,v 1.2 2021/02/27 12:03:43 jasper Exp $
Index: include/modules/cpu.hpp
--- include/modules/cpu.hpp.orig
+++ include/modules/cpu.hpp
@@ -9,7 +9,13 @@ namespace modules {
struct cpu_time {
unsigned long long user;
unsigned long long nice;
+#ifdef __OpenBSD__
+ unsigned long long sys;
+ unsigned long long spin;
+ unsigned long long intr;
+#else
unsigned long long system;
+#endif
unsigned long long idle;
unsigned long long steal;
unsigned long long total;