Index: src/base/msfactory.c
--- src/base/msfactory.c.orig
+++ src/base/msfactory.c
@@ -198,7 +198,7 @@ void ms_factory_init(MSFactory *obj) {
 	GetNativeSystemInfo(&sysinfo);
 
 	num_cpu = sysinfo.dwNumberOfProcessors;
-#elif __APPLE__ || __linux__
+#elif __APPLE__ || __linux__ || __OpenBSD__
 	num_cpu = sysconf(_SC_NPROCESSORS_CONF); /*check the number of processors configured, not just the one that are
 	                                            currently active.*/
 #elif __QNX__
