Get this module to compile with bsddb versions prior to 4.3

This commit is contained in:
Neal Norwitz 2007-10-12 03:52:34 +00:00
parent 15f2661758
commit f3ca169bb4
1 changed files with 2 additions and 0 deletions

View File

@ -5903,7 +5903,9 @@ DL_EXPORT(void) init_bsddb(void)
bsddb_api.dbenv_type = &DBEnv_Type; bsddb_api.dbenv_type = &DBEnv_Type;
bsddb_api.dbtxn_type = &DBTxn_Type; bsddb_api.dbtxn_type = &DBTxn_Type;
bsddb_api.dblock_type = &DBLock_Type; bsddb_api.dblock_type = &DBLock_Type;
#if (DBVER >= 43)
bsddb_api.dbsequence_type = &DBSequence_Type; bsddb_api.dbsequence_type = &DBSequence_Type;
#endif
bsddb_api.makeDBError = makeDBError; bsddb_api.makeDBError = makeDBError;
py_api = PyCObject_FromVoidPtr((void*)&bsddb_api, NULL); py_api = PyCObject_FromVoidPtr((void*)&bsddb_api, NULL);