]>
Commit | Line | Data |
---|---|---|
35c16803 JB |
1 | --- cDonkey-0.9.0/db_macro.h.orig 2003-05-01 17:21:23.000000000 +0200 |
2 | +++ cDonkey-0.9.0/db_macro.h 2006-01-29 00:02:01.652279750 +0100 | |
3 | @@ -15,7 +15,7 @@ | |
4 | #define DB_associate(db,sec,key,art) db->associate(db, sec, key, art) | |
5 | #endif | |
6 | ||
7 | -#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1) | |
8 | +#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1) | |
9 | #define DB_open(db,loc,name,type,art,mode) db->open(db, NULL, loc, name, type, art, mode) | |
10 | #define DB_associate(db,sec,key,art) db->associate(db, NULL, sec, key, art) | |
11 | #endif | |
12 | @@ -43,7 +43,11 @@ | |
13 | #define DB_associate2(db,sec,key) if (0 != (err = DB_associate(db,sec,key,DB_CREATE))) DB_error() | |
14 | #define DB_set_cachesize2(db,len) if (0 != (err = DB_set_cachesize(db,len ))) DB_error() | |
15 | #define DB_set_bt_compare2(db,cmp) if (0 != (err = DB_set_bt_compare(db ,cmp ))) DB_error() | |
16 | +#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3) | |
17 | +#define DB_stat(db,info) if (0 != (err = db->stat(db, NULL, &info, 0 ))) DB_error() | |
18 | +#else | |
19 | #define DB_stat(db,info) if (0 != (err = db->stat(db, &info, 0 ))) DB_error() | |
20 | +#endif | |
21 | #define DB_del2(db,key) if (0 != (err = DB_del (db, key ))) if (err != DB_NOTFOUND) DB_error() | |
22 | #define DB_set_flags2(db,flag) if (0 != (err = DB_set_flags (db, flag ))) DB_error() | |
23 |