From: Neal Norwitz Date: Fri, 12 Oct 2007 03:52:34 +0000 (+0000) Subject: Get this module to compile with bsddb versions prior to 4.3 X-Git-Tag: v2.6a1~1193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f3ca169bb4a95defc032a3675c497c64f2a7236a;p=thirdparty%2FPython%2Fcpython.git Get this module to compile with bsddb versions prior to 4.3 --- diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 11e02016142a..f9bc253db3ad 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -5903,7 +5903,9 @@ DL_EXPORT(void) init_bsddb(void) bsddb_api.dbenv_type = &DBEnv_Type; bsddb_api.dbtxn_type = &DBTxn_Type; bsddb_api.dblock_type = &DBLock_Type; +#if (DBVER >= 43) bsddb_api.dbsequence_type = &DBSequence_Type; +#endif bsddb_api.makeDBError = makeDBError; py_api = PyCObject_FromVoidPtr((void*)&bsddb_api, NULL);