]> granicus.if.org Git - python/commitdiff
Get this module to compile with bsddb versions prior to 4.3
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 12 Oct 2007 03:52:34 +0000 (03:52 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 12 Oct 2007 03:52:34 +0000 (03:52 +0000)
Modules/_bsddb.c

index 11e02016142abac578811cef0319e5de2f0952a2..f9bc253db3adfcf48f4f8e645ebe64dcfffaa3f5 100644 (file)
@@ -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);