[xml] vsnprintf problems on Tru64 UNIX 4.0



Some of the tests don't #include "libxml.h" so the trio vsnprintf()
substitute doesn't get used. This causes a linker error on systems
without vsnprintf() (e.g. Tru64 UNIX 4.0).

-- 
albert chin (china thewrittenword com)

-- snip snip
Index: runsuite.c
===================================================================
--- runsuite.c.orig     2005-07-28 18:30:35.000000000 -0500
+++ runsuite.c  2005-10-26 02:25:54.986305000 -0500
@@ -6,11 +6,12 @@
  * daniel veillard com
  */
 
+#include "libxml.h"
+
 #if !defined(_WIN32) || defined(__CYGWIN__)
 #include <unistd.h>
 #endif
 #include <string.h>
-#include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
Index: runtest.c
===================================================================
--- runtest.c.orig      2005-08-25 07:26:59.000000000 -0500
+++ runtest.c   2005-10-26 02:24:04.037277000 -0500
@@ -11,11 +11,12 @@
  * daniel veillard com
  */
 
+#include "libxml.h"
+
 #if !defined(_WIN32) || defined(__CYGWIN__)
 #include <unistd.h>
 #endif
 #include <string.h>
-#include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
Index: testapi.c
===================================================================
--- testapi.c.orig      2005-09-12 04:16:21.000000000 -0500
+++ testapi.c   2005-10-26 02:20:36.572334000 -0500
@@ -8,7 +8,8 @@
  * daniel veillard com
  */
 
-#include <stdio.h>
+#include "libxml.h"
+
 #include <string.h>
 #include <libxml/xmlerror.h>
 #include <libxml/relaxng.h>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]