--- include/libxml/parser.h.orig	Tue Mar 12 21:35:14 2002
+++ include/libxml/parser.h	Mon Apr 15 13:32:37 2002
@@ -678,11 +678,11 @@
 xmlChar *	xmlStrsub		(const xmlChar *str,
 					 int start,
 					 int len);
-const xmlChar *	xmlStrchr		(const xmlChar *str,
+xmlChar *	xmlStrchr		(const xmlChar *str,
 					 xmlChar val);
-const xmlChar *	xmlStrstr		(const xmlChar *str,
+xmlChar *	xmlStrstr		(const xmlChar *str,
 					 const xmlChar *val);
-const xmlChar *	xmlStrcasestr		(const xmlChar *str,
+xmlChar *	xmlStrcasestr		(const xmlChar *str,
 					 xmlChar *val);
 int		xmlStrcmp		(const xmlChar *str1,
 					 const xmlChar *str2);
--- include/libxml/xpathInternals.h.orig	Tue Mar 12 21:35:14 2002
+++ include/libxml/xpathInternals.h	Mon Apr 15 13:33:13 2002
@@ -422,7 +422,7 @@
 int		   xmlXPathRegisterNs		(xmlXPathContextPtr ctxt,
 						 const xmlChar *prefix,
 						 const xmlChar *ns_uri);
-const xmlChar *	   xmlXPathNsLookup		(xmlXPathContextPtr ctxt,
+xmlChar *	   xmlXPathNsLookup		(xmlXPathContextPtr ctxt,
 						 const xmlChar *prefix);
 void		   xmlXPathRegisteredNsCleanup	(xmlXPathContextPtr ctxt);
 
--- xpath.c.orig	Mon Apr 15 13:37:58 2002
+++ xpath.c	Mon Apr 15 13:38:13 2002
@@ -2814,7 +2814,7 @@
  *
  * Returns the value or NULL if not found
  */
-const xmlChar *
+xmlChar *
 xmlXPathNsLookup(xmlXPathContextPtr ctxt, const xmlChar *prefix) {
     if (ctxt == NULL)
 	return(NULL);
--- nanohttp.c.orig	Mon Apr 15 13:52:17 2002
+++ nanohttp.c	Mon Apr 15 13:52:55 2002
@@ -40,6 +40,9 @@
 #include <netdb.h>
 #endif
 #ifdef HAVE_RESOLV_H
+#if defined(_AIX) && !defined(_AIX51)
+#  include <arpa/nameser.h> 
+#endif
 #include <resolv.h>
 #endif
 #ifdef HAVE_FCNTL_H
