--- OS/Makefile-FreeBSD.orig	2023-04-09 09:45:04.226201000 +0200
+++ OS/Makefile-FreeBSD	2023-04-09 09:48:01.819463000 +0200
@@ -18,8 +18,8 @@
 # Dynamically loaded modules need to be built with -fPIC
 CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
 
-# FreeBSD always ships with Berkeley DB
-USE_DB=yes
+# FreeBSD ships with Berkeley DB until 13.1, but ndbm is always included
+USE_NDBM=yes
 
 # This code for building outside ports suggested by Richard Clayton
 .ifdef   X11BASE
