--- core/CMakeLists.txt.orig	2022-10-25 01:55:54 UTC
+++ core/CMakeLists.txt
@@ -14,6 +14,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
 	set(PLATFORM_SRC windows.c)
 elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
 	set(PLATFORM_SRC unix.c)
+elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+	set(PLATFORM_SRC unix.c)
 endif()
 
 if(FTDISUPPORT)
