Index: src/libs/tgf/linuxspec.cpp
--- src/libs/tgf/linuxspec.cpp.orig
+++ src/libs/tgf/linuxspec.cpp
@@ -641,7 +641,7 @@ unsigned linuxGetNumberOfCPUs()
 		// MacOS X, OpenBSD, NetBSD, etc ...
 #if (defined(__APPLE__) && !defined(USE_MACPORTS)) || defined(__OpenBSD__) || defined(__NetBSD__)
 		
-		nt mib[4];
+		int mib[4];
 		size_t len; 
 		
 		// Set the mib for hw.ncpu
@@ -649,7 +649,7 @@ unsigned linuxGetNumberOfCPUs()
 		// Get the number of CPUs from the system
 		// 1) Try HW_AVAILCPU first.
 		mib[0] = CTL_HW;
-		mib[1] = HW_AVAILCPU;  // alternatively, try HW_NCPU;
+		mib[1] = HW_NCPU;  // alternatively, try HW_NCPU;
 		sysctl(mib, 2, &nCPUs, &len, NULL, 0);
 		
 		if (nCPUs < 1) 
@@ -699,7 +699,7 @@ unsigned linuxGetNumberOfCPUs()
 * Remarks
 *    
 */
-#if !defined(USE_MACPORTS) && !defined(__HAIKU__)
+#if !defined(USE_MACPORTS) && !defined(__HAIKU__) && !defined(__OpenBSD__)
 std::string cpuSet2String(const cpu_set_t* pCPUSet)
 {
 	std::ostringstream ossCPUSet;
