mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
dns/fastresolve: Fix build when default version of berkeley db is 18
PR: 262138 Approved by: maintainer timeout MFH: 2022Q1
This commit is contained in:
parent
156b13913d
commit
4ca30f86b0
1 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,16 @@
|
|||
--- dns-terror/DatedStringDb.cc.orig 2003-05-17 18:14:35 UTC
|
||||
+++ dns-terror/DatedStringDb.cc
|
||||
@@ -69,7 +69,11 @@ DatedStringDb::DatedStringDb(const char
|
||||
@@ -63,13 +63,21 @@ using namespace std;
|
||||
DatedStringDb::DatedStringDb(const char *dbhome, const char *storename)
|
||||
{
|
||||
#if DB_VERSION_MAJOR >= 3
|
||||
+#if DB_VERSION_MAJOR >= 5
|
||||
+ env = new DbEnv((u_int32_t) 0);
|
||||
+#else
|
||||
env = new DbEnv(0);
|
||||
+#endif
|
||||
env->set_error_stream(&cerr);
|
||||
env->set_errpfx(storename ? storename : "DatedStringDb");
|
||||
env->set_cachesize(0, MPOOL_SIZE, 0);
|
||||
env->open(dbhome, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0644);
|
||||
db = new Db(env, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue