diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-07-03 14:13:59 +0900 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2012-08-28 22:03:16 +0800 |
commit | 961b535c10c7d07d7919c58c1d0c6762b35503a1 (patch) | |
tree | a6d3305e1fba5e28560adfc4877bcbb0a6bbc06d /python | |
parent | 236ea1ea90aca35489be3f86c6314a306f2271af (diff) | |
download | android_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.c | 2 |
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); } |