https://support.zabbix.com/browse/ZBX-9456
$OpenBSD: patch-src_zabbix_agent_cpustat_c,v 1.1 2015/06/02 16:45:03 robert Exp $
--- src/zabbix_agent/cpustat.c.orig	Wed Apr 22 09:56:01 2015
+++ src/zabbix_agent/cpustat.c	Tue Jun  2 18:40:46 2015
@@ -26,6 +26,11 @@
 #include "mutexs.h"
 #include "log.h"
 
+/* <sys/dkstat.h> removed in OpenBSD 5.7, only <sys/sched.h> with the same CP_* definitions remained */
+#if defined(OpenBSD) && defined(HAVE_SYS_SCHED_H) && !defined(HAVE_SYS_DKSTAT_H)
+#	include <sys/sched.h>
+#endif
+
 #if !defined(_WINDOWS)
 #	define LOCK_CPUSTATS	zbx_mutex_lock(&cpustats_lock)
 #	define UNLOCK_CPUSTATS	zbx_mutex_unlock(&cpustats_lock)
