aboutsummaryrefslogtreecommitdiffstats
path: root/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 17:12:47 +0000
commit08a006d08a4c35d2c3ecc9a3d10cf7fd14661a84 (patch)
tree0cfc4f0736babb895eb97a65c6defe632a0249c7 /dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc
parentf474a16cfbfad1844b9c50e45e36a3a77f0c59b5 (diff)
Rename all patches that contain '::' as a path separator, and use
'__' instead.
Diffstat (limited to 'dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc')
-rw-r--r--dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc b/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc
new file mode 100644
index 000000000000..9c231327dee5
--- /dev/null
+++ b/dns/fastresolve/files/patch-dns-terror__DatedStringDb.cc
@@ -0,0 +1,14 @@
+--- dns-terror/DatedStringDb.cc.orig Sat Sep 6 18:38:24 2003
++++ dns-terror/DatedStringDb.cc Sat Sep 6 18:38:31 2003
+@@ -69,7 +69,11 @@
+ env->set_cachesize(0, MPOOL_SIZE, 0);
+ env->open(dbhome, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0644);
+ db = new Db(env, 0);
++#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1 || DB_VERSION_MAJOR > 4
++ db->open(NULL, storename, NULL, DB_BTREE, DB_CREATE, 0644);
++#else
+ db->open(storename, NULL, DB_BTREE, DB_CREATE, 0644);
++#endif
+ #elif DB_VERSION_MAJOR == 2
+ env = new DbEnv;
+ env->set_error_stream(&cerr);