aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2012-07-03 14:13:59 +0900
committerDaniel Veillard <veillard@redhat.com>2012-08-28 22:03:16 +0800
commit961b535c10c7d07d7919c58c1d0c6762b35503a1 (patch)
treea6d3305e1fba5e28560adfc4877bcbb0a6bbc06d /python
parent236ea1ea90aca35489be3f86c6314a306f2271af (diff)
downloadandroid_external_libxml2-961b535c10c7d07d7919c58c1d0c6762b35503a1.tar.gz
android_external_libxml2-961b535c10c7d07d7919c58c1d0c6762b35503a1.tar.bz2
android_external_libxml2-961b535c10c7d07d7919c58c1d0c6762b35503a1.zip
Bug 676544 - fails to build with --without-sax1
Added some ifdef'd LIBXML_SAX1_ENABLED to make it buildable with --without-sax1 configure option.
Diffstat (limited to 'python')
-rw-r--r--python/libxml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/libxml.c b/python/libxml.c
index ea4998bc..a556160f 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -1365,6 +1365,7 @@ libxml_htmlCreatePushParser(ATTRIBUTE_UNUSED PyObject * self,
PyObject *
libxml_xmlSAXParseFile(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
{
+#ifdef LIBXML_SAX1_ENABLED
int recover;
const char *URI;
PyObject *pyobj_SAX = NULL;
@@ -1386,6 +1387,7 @@ libxml_xmlSAXParseFile(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
Py_INCREF(pyobj_SAX);
/* The reference is released in pythonEndDocument() */
xmlSAXUserParseFile(SAX, pyobj_SAX, URI);
+#endif /* LIBXML_SAX1_ENABLED */
Py_INCREF(Py_None);
return (Py_None);
}