small portability glitch fixed. Daniel

* xmlIO.c: small portability glitch fixed.
Daniel
diff --git a/ChangeLog b/ChangeLog
index 84744dd..94e893c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Sep 17 19:58:26 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+	* xmlIO.c: small portability glitch fixed.
+
 Mon Sep 17 12:38:08 CEST 2002 Daniel Veillard <daniel@veillard.com>
 
 	* xmlschemastypes.c: incomplete steps for real/double support
diff --git a/xmlIO.c b/xmlIO.c
index 0b8927a..1234140 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -12,7 +12,10 @@
 #include "libxml.h"
 
 #include <string.h>
+#ifdef HAVE_ERRNO_H
 #include <errno.h>
+#endif
+
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>