use the correct CP_* definitions and number of CPUSTATES on OpenBSD
This commit is contained in:
parent
451300eda2
commit
4cf0dad920
@ -28,12 +28,15 @@
|
|||||||
#define CP_IDLE 2
|
#define CP_IDLE 2
|
||||||
#define CP_NICE 3
|
#define CP_NICE 3
|
||||||
#define CP_STATES 4
|
#define CP_STATES 4
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
|
#include <sys/sched.h>
|
||||||
|
#define CP_STATES CPUSTATES
|
||||||
#else
|
#else
|
||||||
#define CP_USER 0
|
#define CP_USER 0
|
||||||
#define CP_NICE 1
|
#define CP_NICE 1
|
||||||
#define CP_SYS 2
|
#define CP_SYS 2
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
// *BSD or OSX
|
// *BSD or OSX
|
||||||
#define CP_INTR 3
|
#define CP_INTR 3
|
||||||
#define CP_IDLE 4
|
#define CP_IDLE 4
|
||||||
|
Loading…
Reference in New Issue
Block a user