SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
sysutils/collectd/patches/patch-src_cpu_c
Normal file
18
sysutils/collectd/patches/patch-src_cpu_c
Normal file
|
@ -0,0 +1,18 @@
|
|||
Unless sched.h is included, collectd's cpu module falls back to using local
|
||||
definitions of CPUSTATES and related macros which no longer match ones used
|
||||
by the kernel.
|
||||
|
||||
Index: src/cpu.c
|
||||
--- src/cpu.c.orig
|
||||
+++ src/cpu.c
|
||||
@@ -63,6 +63,10 @@
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_SYS_SCHED_H
|
||||
+#include <sys/sched.h>
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_SYS_DKSTAT_H
|
||||
/* implies BSD variant */
|
||||
#include <sys/dkstat.h>
|
Loading…
Add table
Add a link
Reference in a new issue