--- src/third_party/wiredtiger/SConscript.orig	2020-11-11 23:24:07 UTC
+++ src/third_party/wiredtiger/SConscript
@@ -60,6 +60,8 @@ elif env.TargetOSIs('solaris'):
     env.Append(CPPDEFINES=["__EXTENSIONS__"])
 elif env.TargetOSIs('freebsd'):
     env.Append(CPPPATH=["build_freebsd"])
+elif env.TargetOSIs('midnightbsd'):
+    env.Append(CPPPATH=["build_midnightbsd"])
 elif env.TargetOSIs('openbsd'):
     env.Append(CPPPATH=["build_openbsd"])
 elif env.TargetOSIs('linux'):
