--- src/CMakeLists.txt.orig	2021-09-11 11:33:24.887913000 -0400
+++ src/CMakeLists.txt	2021-09-11 11:34:45.510286000 -0400
@@ -64,6 +64,8 @@
 	list(APPEND FIDO_SOURCES hid_openbsd.c hid_unix.c)
 elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
 	list(APPEND FIDO_SOURCES hid_freebsd.c hid_unix.c)
+elseif(CMAKE_SYSTEM_NAME STREQUAL "MidnightBSD")
+	list(APPEND FIDO_SOURCES hid_midnightbsd.c hid_unix.c)
 else()
 	message(FATAL_ERROR "please define a hid backend for your platform")
 endif()
