m4: use autotools_stage, checksum in SRC_URI, switch to .inc, add 1.4.14
[openembedded.git] / recipes / netatalk / netatalk-2.0.3 / netatalk-2.0.3-db43.patch
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
6      DB_BTREE_STAT *sp;
7      DB *db = db_table[dbi].db;
8  
9 +#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
10 +    ret = db->stat(db, db_txn, &sp, 0);
11 +#else
12      ret = db->stat(db, &sp, 0);
13 +#endif
14  
15      if (ret) {
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 
22      DB_BTREE_STAT *sp;
23      DB *db = db_table[dbi].db;
24  
25 +#if DB_VERSION_MAJOR > 4 || ( DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 3 )
26 +    ret = db->stat(db, db_txn, &sp, 0);
27 +#else
28      ret = db->stat(db, &sp, 0);
29 +#endif
30  
31      if (ret) {
32          LOG(log_error, logtype_cnid, "error getting stat infotmation on database: %s", db_strerror(errno));