Solaris wants string.h for mem* declarations. This will shut gcc up when
compiling xmlparse.c.

/dale
--- apr-util/xml/expat/config.h.in.orig Thu Jun  7 17:42:08 2001
+++ apr-util/xml/expat/config.h.in      Thu Jun  7 17:35:51 2001
@@ -37,6 +37,9 @@
 /* Define if you have the <fcntl.h> header file.  */
 #undef HAVE_FCNTL_H
 
+/* Define if you have the <string.h> header file.  */
+#undef HAVE_STRING_H
+
 /* Define if you have the <unistd.h> header file.  */
 #undef HAVE_UNISTD_H
 
--- apr-util/xml/expat/configure.in.orig        Thu Jun  7 17:27:11 2001
+++ apr-util/xml/expat/configure.in     Thu Jun  7 17:28:22 2001
@@ -76,7 +76,7 @@
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h string.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 dnl check for endianness

--- apr-util/xml/expat/lib/xmlparse.c.orig      Thu Jun  7 17:37:02 2001
+++ apr-util/xml/expat/lib/xmlparse.c   Thu Jun  7 17:40:51 2001
@@ -14,6 +14,10 @@
 #else
 #include <config.h>
 
+#ifdef HAVE_STRING_H
+#  include <string.h>
+#endif
+
 #ifdef __declspec
 #  define XMLPARSEAPI __declspec(dllexport)
 #endif

Reply via email to