--- CMakeLists.txt.orig	2024-03-21 19:36:52 UTC
+++ CMakeLists.txt
@@ -56,6 +56,8 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
   set(SPIRV_TIMER_ENABLED ${SPIRV_ALLOW_TIMERS})
 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
   add_definitions(-DSPIRV_FREEBSD)
+elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "MidnightBSD")
+  add_definitions(-DSPIRV_FREEBSD)
 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
   add_definitions(-DSPIRV_OPENBSD)
 elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
