summaryrefslogtreecommitdiff
path: root/recipes/netatalk/netatalk-2.0.3/netatalk-2.0.3-db43.patch
blob: 93d3e4b9ea3ba2289654ef2a6c55a481f8620b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Index: netatalk-2.0.3/bin/cnid/cnid_index.c
===================================================================
--- netatalk-2.0.3.orig/bin/cnid/cnid_index.c
+++ netatalk-2.0.3/bin/cnid/cnid_index.c
@@ -274,7 +274,11 @@ static int dbif_count(const int dbi, u_i
     DB_BTREE_STAT *sp;
     DB *db = db_table[dbi].db;
 
+#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
+    ret = db->stat(db, db_txn, &sp, 0);
+#else
     ret = db->stat(db, &sp, 0);
+#endif
 
     if (ret) {
         LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));
Index: netatalk-2.0.3/etc/cnid_dbd/dbif.c
===================================================================
--- netatalk-2.0.3.orig/etc/cnid_dbd/dbif.c
+++ netatalk-2.0.3/etc/cnid_dbd/dbif.c
@@ -514,7 +514,11 @@ int dbif_count(const int dbi, u_int32_t 
     DB_BTREE_STAT *sp;
     DB *db = db_table[dbi].db;
 
+#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
+    ret = db->stat(db, db_txn, &sp, 0);
+#else
     ret = db->stat(db, &sp, 0);
+#endif
 
     if (ret) {
         LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));