mirror of https://github.com/python/cpython
Get this module to compile with bsddb versions prior to 4.3
This commit is contained in:
parent
15f2661758
commit
f3ca169bb4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue