xerces-c2 (2.8.0+deb1-2) kfreebsd.patch

Summary

 samples/configure.in                                    |    1 +
 src/xercesc/configure.in                                |    1 +
 src/xercesc/util/AutoSense.hpp                          |    3 +++
 src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp |    2 +-
 tests/configure.in                                      |    1 +
 5 files changed, 7 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

Index: xerces-c-src_2_8_0/samples/configure.in
===================================================================
--- xerces-c-src_2_8_0.orig/samples/configure.in	2009-06-11 21:05:11.449609745 -0400
+++ xerces-c-src_2_8_0/samples/configure.in	2009-06-11 21:05:11.541609859 -0400
@@ -38,6 +38,7 @@
         *-*-sysv5uw7*)  platform=UNIXWARE ;;
         *-*-beos*)      platform=BEOS ;;
         *-*-linux*)     platform=LINUX ;;
+        *-*-k*bsd*)     platform=LINUX ;;
         *-*-nto*)       platform=QNX ;;
         *-*-freebsd*)   platform=FREEBSD ;;
         *-*-netbsd*)    platform=NETBSD ;;
Index: xerces-c-src_2_8_0/src/xercesc/configure.in
===================================================================
--- xerces-c-src_2_8_0.orig/src/xercesc/configure.in	2009-06-11 21:05:11.457609718 -0400
+++ xerces-c-src_2_8_0/src/xercesc/configure.in	2009-06-11 21:05:11.549609401 -0400
@@ -35,6 +35,7 @@
         *-*-beos*)      platform=BEOS ;;
         *-*-nto*)       platform=QNX ;;
         *-*-linux*)     platform=LINUX ;;
+        *-*-k*bsd*)     platform=LINUX ;;
         *-*-freebsd*)   platform=FREEBSD ;;
         *-*-netbsd*)    platform=NETBSD ;;
         *-*-irix*)      platform=IRIX ;;
Index: xerces-c-src_2_8_0/src/xercesc/util/AutoSense.hpp
===================================================================
--- xerces-c-src_2_8_0.orig/src/xercesc/util/AutoSense.hpp	2009-06-11 21:05:11.461609840 -0400
+++ xerces-c-src_2_8_0/src/xercesc/util/AutoSense.hpp	2009-06-11 21:05:11.549609401 -0400
@@ -59,6 +59,9 @@
     #if defined(__s390__)
         #define XML_LINUX_390
     #endif
+#elif defined(__GLIBC__)
+    #define XML_LINUX
+    #define XML_UNIX
 #elif defined(__FreeBSD__)
     #define XML_FREEBSD
     #define XML_UNIX
Index: xerces-c-src_2_8_0/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp
===================================================================
--- xerces-c-src_2_8_0.orig/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp	2009-06-11 21:05:11.473609958 -0400
+++ xerces-c-src_2_8_0/src/xercesc/util/Platforms/Linux/LinuxPlatformUtils.cpp	2009-06-11 21:05:11.549609401 -0400
@@ -37,7 +37,7 @@
 #include    <stdlib.h>
 #include    <errno.h>
 #include    <libgen.h>
-#include    <linux/limits.h>           //for PATH_MAX
+#include    <sys/param.h>           // for PATH_MAX
 #include    <sys/timeb.h>
 #include    <string.h>
 #include    <xercesc/util/PlatformUtils.hpp>
Index: xerces-c-src_2_8_0/tests/configure.in
===================================================================
--- xerces-c-src_2_8_0.orig/tests/configure.in	2009-06-11 21:05:11.485609640 -0400
+++ xerces-c-src_2_8_0/tests/configure.in	2009-06-11 21:05:11.549609401 -0400
@@ -38,6 +38,7 @@
         *-*-sysv5uw7*)  platform=UNIXWARE ;;
         *-*-beos*)      platform=BEOS ;;
         *-*-linux*)     platform=LINUX ;;
+        *-*-k*bsd*)     platform=LINUX ;;
         *-*-nto*)       platform=QNX ;;
         *-*-freebsd*)   platform=FREEBSD ;;
         *-*-netbsd*)    platform=NETBSD ;;