considering how sloppy the bits I looked at were, I'm sure the rest
of this code sucks too, but this fixes some implicit declarations.
+-#ifdef HAVE_STRING_H
nice: they test for it in debugXML.c (and in another one they test
for it _and_ include it unconditionally, but other files are just
added unconditionally)... but they never told autoconf to check for
the header or define HAVE_STRING_H.
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
obvious.
There are still some implicit definitions of internal functions
but they're int or void anyway so I haven't touched them.
ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/libxml1/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- Makefile 15 Sep 2007 20:59:38 -0000 1.16
+++ Makefile 14 Jul 2008 10:44:55 -0000
@@ -4,7 +4,7 @@ COMMENT= XML parsing library for GNOME
VERSION= 1.8.17
DISTNAME= libxml-${VERSION}
-PKGNAME= libxml1-${VERSION}p2
+PKGNAME= libxml1-${VERSION}p3
SHARED_LIBS= xml 9.17
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libxml/1.8/}
Index: patches/patch-debugXML_c
===================================================================
RCS file: patches/patch-debugXML_c
diff -N patches/patch-debugXML_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-debugXML_c 14 Jul 2008 10:44:55 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- debugXML.c.orig Mon Jul 14 11:39:13 2008
++++ debugXML.c Mon Jul 14 11:39:58 2008
+@@ -16,9 +16,7 @@
+ #ifdef HAVE_STDLIB_H
+ #include <stdlib.h>
+ #endif
+-#ifdef HAVE_STRING_H
+ #include <string.h>
+-#endif
+ #include "xmlmemory.h"
+ #include "tree.h"
+ #include "parser.h"
Index: patches/patch-xmlmemory_h
===================================================================
RCS file: patches/patch-xmlmemory_h
diff -N patches/patch-xmlmemory_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-xmlmemory_h 14 Jul 2008 10:44:55 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+--- xmlmemory.h.orig Mon Jul 14 11:32:42 2008
++++ xmlmemory.h Mon Jul 14 11:32:54 2008
+@@ -14,6 +14,9 @@
+ #ifdef HAVE_MALLOC_H
+ #include <malloc.h>
+ #endif
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
+
+ #define xmlFree(x) free((x))
+ #define xmlMalloc(x) malloc(x)