$OpenBSD$

Index: core/CMakeLists.txt
--- core/CMakeLists.txt.orig
+++ core/CMakeLists.txt
@@ -12,6 +12,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 	set(PLATFORM_SRC macos.c)
 elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
 	set(PLATFORM_SRC windows.c)
+elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
+	set(PLATFORM_SRC linux.c)
 endif()
 
 if(FTDISUPPORT)
