Skip to content

Commit f3ca169

Browse files
committed
Get this module to compile with bsddb versions prior to 4.3
1 parent 15f2661 commit f3ca169

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Modules/_bsddb.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5903,7 +5903,9 @@ DL_EXPORT(void) init_bsddb(void)
59035903
bsddb_api.dbenv_type = &DBEnv_Type;
59045904
bsddb_api.dbtxn_type = &DBTxn_Type;
59055905
bsddb_api.dblock_type = &DBLock_Type;
5906+
#if (DBVER >= 43)
59065907
bsddb_api.dbsequence_type = &DBSequence_Type;
5908+
#endif
59075909
bsddb_api.makeDBError = makeDBError;
59085910

59095911
py_api = PyCObject_FromVoidPtr((void*)&bsddb_api, NULL);

0 commit comments

Comments
 (0)