diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-20 04:30:15 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-20 04:30:15 (GMT) |
commit | 8456235088451836dc14492492e1735124f6dee4 (patch) | |
tree | ed93e004a19e301feb4c97ae4a4e28ae73c8460e /Modules | |
parent | 95c1e5065ca572a4a3f602487ff6112f089a9257 (diff) | |
download | cpython-8456235088451836dc14492492e1735124f6dee4.zip cpython-8456235088451836dc14492492e1735124f6dee4.tar.gz cpython-8456235088451836dc14492492e1735124f6dee4.tar.bz2 |
Get bsddb module to compile with version 3.2 of BSD DB.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_bsddb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 6b4f84b..f493ecb 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -1969,6 +1969,7 @@ DB_set_bt_minkey(DBObject* self, PyObject* args) RETURN_NONE(); } +#if (DBVER >= 33) static int _default_cmp (const DBT *leftKey, const DBT *rightKey) @@ -2120,6 +2121,7 @@ DB_set_bt_compare (DBObject* self, PyObject* args) RETURN_IF_ERR (); RETURN_NONE (); } +#endif /* DBVER >= 33 */ static PyObject* @@ -3956,6 +3958,7 @@ DBEnv_set_lg_max(DBEnvObject* self, PyObject* args) } +#if (DBVER >= 33) static PyObject* DBEnv_set_lg_regionmax(DBEnvObject* self, PyObject* args) { @@ -3971,6 +3974,7 @@ DBEnv_set_lg_regionmax(DBEnvObject* self, PyObject* args) RETURN_IF_ERR(); RETURN_NONE(); } +#endif static PyObject* @@ -4593,7 +4597,9 @@ static PyMethodDef DB_methods[] = { {"remove", (PyCFunction)DB_remove, METH_VARARGS|METH_KEYWORDS}, {"rename", (PyCFunction)DB_rename, METH_VARARGS}, {"set_bt_minkey", (PyCFunction)DB_set_bt_minkey, METH_VARARGS}, +#if (DBVER >= 33) {"set_bt_compare", (PyCFunction)DB_set_bt_compare, METH_VARARGS}, +#endif {"set_cachesize", (PyCFunction)DB_set_cachesize, METH_VARARGS}, #if (DBVER >= 41) {"set_encrypt", (PyCFunction)DB_set_encrypt, METH_VARARGS|METH_KEYWORDS}, @@ -4683,7 +4689,9 @@ static PyMethodDef DBEnv_methods[] = { {"set_lg_bsize", (PyCFunction)DBEnv_set_lg_bsize, METH_VARARGS}, {"set_lg_dir", (PyCFunction)DBEnv_set_lg_dir, METH_VARARGS}, {"set_lg_max", (PyCFunction)DBEnv_set_lg_max, METH_VARARGS}, +#if (DBVER >= 33) {"set_lg_regionmax",(PyCFunction)DBEnv_set_lg_regionmax, METH_VARARGS}, +#endif {"set_lk_detect", (PyCFunction)DBEnv_set_lk_detect, METH_VARARGS}, {"set_lk_max", (PyCFunction)DBEnv_set_lk_max, METH_VARARGS}, #if (DBVER >= 32) |