summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2004-12-16 09:47:28 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2004-12-16 09:47:28 (GMT)
commit8a6a59c58b70df6f3f230ddf575b5af0eb0a2fb6 (patch)
tree037e6c40e44f63a7d6cc08001bba8a90275a3f9e /Modules
parent3fa932f7ed6d8120496a872e73a63dd12256e9f8 (diff)
downloadcpython-8a6a59c58b70df6f3f230ddf575b5af0eb0a2fb6.zip
cpython-8a6a59c58b70df6f3f230ddf575b5af0eb0a2fb6.tar.gz
cpython-8a6a59c58b70df6f3f230ddf575b5af0eb0a2fb6.tar.bz2
fixed compilation against BerkeleyDB 3.2.9 (sf bug # 1077040)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_bsddb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
index 7ececa7..2712e3d 100644
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -1448,6 +1448,7 @@ DB_get(DBObject* self, PyObject* args, PyObject* kwargs)
return retval;
}
+#if (DBVER >= 33)
static PyObject*
DB_pget(DBObject* self, PyObject* args, PyObject* kwargs)
{
@@ -1535,6 +1536,7 @@ DB_pget(DBObject* self, PyObject* args, PyObject* kwargs)
RETURN_IF_ERR();
return retval;
}
+#endif
/* Return size of entry */
@@ -2918,6 +2920,7 @@ DBC_get(DBCursorObject* self, PyObject* args, PyObject *kwargs)
return retval;
}
+#if (DBVER >= 33)
static PyObject*
DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
{
@@ -3017,6 +3020,7 @@ DBC_pget(DBCursorObject* self, PyObject* args, PyObject *kwargs)
}
return retval;
}
+#endif
static PyObject*
@@ -4379,7 +4383,9 @@ static PyMethodDef DB_methods[] = {
{"delete", (PyCFunction)DB_delete, METH_VARARGS|METH_KEYWORDS},
{"fd", (PyCFunction)DB_fd, METH_VARARGS},
{"get", (PyCFunction)DB_get, METH_VARARGS|METH_KEYWORDS},
+#if (DBVER >= 33)
{"pget", (PyCFunction)DB_pget, METH_VARARGS|METH_KEYWORDS},
+#endif
{"get_both", (PyCFunction)DB_get_both, METH_VARARGS|METH_KEYWORDS},
{"get_byteswapped", (PyCFunction)DB_get_byteswapped,METH_VARARGS},
{"get_size", (PyCFunction)DB_get_size, METH_VARARGS|METH_KEYWORDS},
@@ -4439,7 +4445,9 @@ static PyMethodDef DBCursor_methods[] = {
{"dup", (PyCFunction)DBC_dup, METH_VARARGS},
{"first", (PyCFunction)DBC_first, METH_VARARGS|METH_KEYWORDS},
{"get", (PyCFunction)DBC_get, METH_VARARGS|METH_KEYWORDS},
+#if (DBVER >= 33)
{"pget", (PyCFunction)DBC_pget, METH_VARARGS|METH_KEYWORDS},
+#endif
{"get_recno", (PyCFunction)DBC_get_recno, METH_VARARGS},
{"last", (PyCFunction)DBC_last, METH_VARARGS|METH_KEYWORDS},
{"next", (PyCFunction)DBC_next, METH_VARARGS|METH_KEYWORDS},