- First part is from http://cvsweb.se.netbsd.org/cgi-bin/bsdweb.cgi/pkgsrc/editors/nvi/patches/patch-aa?rev=1.3;content-type=text/plain
+ First part is adapted from http://cvsweb.se.netbsd.org/cgi-bin/bsdweb.cgi/pkgsrc/editors/nvi/patches/patch-aa?rev=1.3;content-type=text/plain
---- a/common/db.h 2012-08-27 06:55:01.000000000 -0400
-+++ b/common/db.h 2012-08-27 07:17:48.000000000 -0400
+--- a/common/db.h
++++ b/common/db.h
+@@ -4,7 +4,7 @@
+ #define DB_BUFFER_SMALL ENOMEM
+ #endif
+
+-#if DB_VERSION_MAJOR >= 3 && DB_VERSION_MINOR >= 1
++#if (DB_VERSION_MAJOR >= 3 && DB_VERSION_MINOR >= 1) || DB_VERSION_MAJOR > 3
+ #define db_env_open(env,path,flags,mode) \
+ (env)->open(env, path, flags, mode)
+ #define db_env_remove(env,path,flags) \
@@ -16,7 +16,10 @@
(env)->remove(env, path, NULL, flags)
#endif