--- Emulator/Serial/CMakeLists.txt.orig	2025-11-07 12:23:08 UTC
+++ Emulator/Serial/CMakeLists.txt
@@ -31,7 +31,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
 		Emulator/Serial/TPtySerialPortManager.cpp
 		Emulator/Serial/TPtySerialPortManager.h
 	)
-elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
+elseif (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES ".*BSD$")
 	list (APPEND common_sources
 		Emulator/Serial/TSerialHostPort.h
 		Emulator/Serial/TSerialHostPortDirect.h
