$OpenBSD$

Index: src/Common/PlatformBSD.inl
--- src/Common/PlatformBSD.inl.orig
+++ src/Common/PlatformBSD.inl
@@ -18,7 +18,7 @@
 #include <string>
 #include <pthread_np.h>
 #define pthread_setname_np pthread_set_name_np
-#define cpu_set_t cpuset_t
+#define cpu_set_t 0 // todo openbsd
 #include <pthread.h>
 #include <fcntl.h>
 #include <sys/mman.h> // for mmap / munmap
@@ -1110,3 +1110,4 @@ inline void restore_path_separators(char * path)
 }
 
 inline tm* localtime_safe(const time_t *time, struct tm* result){ return localtime_r(time, result); }
+#define xr_strerror(errno, buffer, bufferSize) strerror_r(errno, buffer, sizeof(buffer))
