Lines 1-6
Link Here
|
1 |
--- dns-terror/DatedStringDb.cc.orig 2003-05-17 18:14:35 UTC |
1 |
--- dns-terror/DatedStringDb.cc.orig 2003-05-17 18:14:35 UTC |
2 |
+++ dns-terror/DatedStringDb.cc |
2 |
+++ dns-terror/DatedStringDb.cc |
3 |
@@ -69,7 +69,11 @@ DatedStringDb::DatedStringDb(const char |
3 |
@@ -63,13 +63,21 @@ using namespace std; |
|
|
4 |
DatedStringDb::DatedStringDb(const char *dbhome, const char *storename) |
5 |
{ |
6 |
#if DB_VERSION_MAJOR >= 3 |
7 |
+#if DB_VERSION_MAJOR >= 5 |
8 |
+ env = new DbEnv((u_int32_t) 0); |
9 |
+#else |
10 |
env = new DbEnv(0); |
11 |
+#endif |
12 |
env->set_error_stream(&cerr); |
13 |
env->set_errpfx(storename ? storename : "DatedStringDb"); |
4 |
env->set_cachesize(0, MPOOL_SIZE, 0); |
14 |
env->set_cachesize(0, MPOOL_SIZE, 0); |
5 |
env->open(dbhome, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0644); |
15 |
env->open(dbhome, DB_CREATE|DB_INIT_MPOOL|DB_PRIVATE, 0644); |
6 |
db = new Db(env, 0); |
16 |
db = new Db(env, 0); |
7 |
- |
|
|