FreeBSD Bugzilla – Attachment 232028 Details for
Bug 262138
dns/fastresolve: Fix build when default version of berkeley db is 18
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
dns_fastresolve.patch (text/plain), 1.29 KB, created by
Yasuhiro Kimura
on 2022-02-23 06:46:49 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2022-02-23 06:46:49 UTC
Size:
1.29 KB
patch
obsolete
>From f618e77cb49c410fc64907eeb0920b468a139dbd Mon Sep 17 00:00:00 2001 >From: Yasuhiro Kimura <yasu@FreeBSD.org> >Date: Sun, 6 Feb 2022 04:14:05 +0900 >Subject: [PATCH] dns/fastresolve: Fix build when default version of berkeley > db is 18 > >--- > .../files/patch-dns-terror__DatedStringDb.cc | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc b/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc >index 53d15eff0c29..dd2bde9c77a9 100644 >--- a/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc >+++ b/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc >@@ -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); >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
koobs
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 262138
: 232028