summaryrefslogtreecommitdiff
path: root/python/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'python/generic.h')
-rw-r--r--python/generic.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/generic.h b/python/generic.h
index 7d2d6d3e..31c1bc2d 100644
--- a/python/generic.h
+++ b/python/generic.h
@@ -227,4 +227,10 @@ PyObject *HandleErrors(PyObject *Res = 0);
const char **ListToCharChar(PyObject *List,bool NullTerm = false);
PyObject *CharCharToList(const char **List,unsigned long Size = 0);
+# ifdef COMPAT_0_7
+PyObject *_PyAptObject_getattro(PyObject *self, PyObject *attr);
+# else
+# define _PyAptObject_getattro 0
+# endif
+
#endif