diff options
Diffstat (limited to 'python/apt_pkgmodule.cc')
-rw-r--r-- | python/apt_pkgmodule.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/apt_pkgmodule.cc b/python/apt_pkgmodule.cc index 7704aa01..1a991a48 100644 --- a/python/apt_pkgmodule.cc +++ b/python/apt_pkgmodule.cc @@ -537,8 +537,10 @@ static PyMethodDef methods[] = "Translate the given string. This is much faster than Python's version\n" "and only does translations after setlocale() has been called."}, +#ifdef HAVE_OPEN_MEMSTREAM // Tag File {"rewrite_section",RewriteSection,METH_VARARGS,doc_RewriteSection}, +#endif // Locking {"get_lock",GetLock,METH_VARARGS,doc_GetLock}, @@ -623,7 +625,9 @@ static PyMethodDef methods[] = {"ParseSection",ParseSection,METH_VARARGS,doc_ParseSection}, {"ParseTagFile",ParseTagFile,METH_VARARGS,doc_ParseTagFile}, +#ifdef HAVE_OPEN_MEMSTREAM {"RewriteSection",RewriteSection,METH_VARARGS,doc_RewriteSection}, +#endif {"GetLock",GetLock,METH_VARARGS,doc_GetLock}, {"PkgSystemLock",PkgSystemLock,METH_VARARGS,doc_PkgSystemLock}, |