--- libxml2-2.9.0/include/libxml/entities.h	2012-08-15 00:29:24.000000000 +0200
+++ libxml2-2.9.0-patched-beforeauto/include/libxml/entities.h	2012-09-04 15:45:04.000000000 +0200
@@ -118,6 +118,11 @@
 XMLPUBFUN xmlChar * XMLCALL
 			xmlEncodeEntitiesReentrant(xmlDocPtr doc,
 						 const xmlChar *input);
+#ifdef IN_LIBXML
+xmlChar *
+            __xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input,
+                         int htmlAttr);
+#endif /* IN_LIBXML */
 XMLPUBFUN xmlChar * XMLCALL
 			xmlEncodeSpecialChars	(xmlDocPtr doc,
 						 const xmlChar *input);
