This patch is against 0.3.0, but applies (with manual tweaks) to trunk too : --- panel-plugin/os.c.orig Tue Jul 15 14:10:04 2008 +++ panel-plugin/os.c Tue Jul 15 14:11:46 2008 @@ -101,12 +101,12 @@ long GetCPUUsage (int *oldusage, int *oldtotal) return usage; } -#elif defined (__OpenBSD_) +#elif defined (__OpenBSD__) long GetCPUUsage (int *oldusage, int *oldtotal) { long user, nice, sys, bsdidle, idle; long used, total, usage; - static int mib[] = {CTL_KERN, KERN_CP_TIME }; + static int mib[] = {CTL_KERN, KERN_CPTIME }; u_int64_t cp_time[CPUSTATES]; size_t len = sizeof (cp_time); if (sysctl (mib, 2, &cp_time, &len, NULL, 0) < 0) @@ -134,5 +134,5 @@ long GetCPUUsage (int *oldusage, int *oldtotal) return usage; } #else -#error "You're OS is not supported." +#error "Your OS is not supported." #endif Awaiting next release, with full *BSD support (not like 0.4.0 :)
I applied the patch, so I'll mark this as fixed. Unfortunately, I don't have a access to an openbsd machine, so I'll be glad if someone could check for me that it works as intended.