--- CMakeLists.txt.orig	2020-03-26 02:02:59.000000000 -0400
+++ CMakeLists.txt	2020-09-28 09:12:47.989577000 -0400
@@ -53,6 +53,8 @@
   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 "Fuchsia")
   add_definitions(-DSPIRV_FUCHSIA)
 else()
