1 Index: netatalk-2.0.3/bin/cnid/cnid_index.c
2 ===================================================================
3 --- netatalk-2.0.3.orig/bin/cnid/cnid_index.c
4 +++ netatalk-2.0.3/bin/cnid/cnid_index.c
5 @@ -274,7 +274,11 @@ static int dbif_count(const int dbi, u_i
7 DB *db = db_table[dbi].db;
9 +#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
10 + ret = db->stat(db, db_txn, &sp, 0);
12 ret = db->stat(db, &sp, 0);
16 LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
17 Index: netatalk-2.0.3/etc/cnid_dbd/dbif.c
18 ===================================================================
19 --- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c
20 +++ netatalk-2.0.3/etc/cnid_dbd/dbif.c
21 @@ -514,7 +514,11 @@ int dbif_count(const int dbi, u_int32_t
23 DB *db = db_table[dbi].db;
25 +#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
26 + ret = db->stat(db, db_txn, &sp, 0);
28 ret = db->stat(db, &sp, 0);
32 LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));