[xml] [PATCH] libxml2 LynxOS support



Hi,

This patch adds LynxOS 4.0 support for libxml. I'm now able to
compile the library cleanly but test suite does not compile yet.
This is due to missing glob() function on LynxOS.

Could somebody review and apply these changes to libxml2?

Regards,
Olli
diff -ur libxml2-2.6.24.orig/libxml.h libxml2-2.6.24/libxml.h
--- libxml2-2.6.24.orig/libxml.h        2006-03-28 14:29:21.000000000 +0300
+++ libxml2-2.6.24/libxml.h     2006-05-23 19:14:51.000000000 +0300
@@ -25,6 +25,13 @@
 #include <libxml/xmlversion.h>
 #endif
 
+#if defined(__Lynx__)
+#include <stdio.h> /* pull definition of size_t */
+#include <varargs.h>
+int snprintf(char *, size_t, const char *, ...);
+int vfprintf(FILE *, const char *, va_list);
+#endif
+
 #ifndef WITH_TRIO
 #include <stdio.h>
 #else
diff -ur libxml2-2.6.24.orig/triodef.h libxml2-2.6.24/triodef.h
--- libxml2-2.6.24.orig/triodef.h       2006-03-28 14:29:21.000000000 +0300
+++ libxml2-2.6.24/triodef.h    2006-05-23 19:14:51.000000000 +0300
@@ -56,6 +56,8 @@
 # define TRIO_PLATFORM_UNIX
 #elif defined(__NetBSD__)
 # define TRIO_PLATFORM_UNIX
+#elif defined(__Lynx__)
+# define TRIO_PLATFORM_UNIX
 #elif defined(__QNX__)
 # define TRIO_PLATFORM_UNIX
 # define TRIO_PLATFORM_QNX


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