Kaydet (Commit) f3ca169b authored tarafından Neal Norwitz's avatar Neal Norwitz

Get this module to compile with bsddb versions prior to 4.3

üst 15f26617
...@@ -5903,7 +5903,9 @@ DL_EXPORT(void) init_bsddb(void) ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment