xref: /aoo4110/main/libxml2/libxml2-mingw.patch (revision b1cdbd2c)
1--- misc/libxml2-2.7.8/configure	2008-01-11 17:01:56.000000000 +0900
2+++ misc/build/libxml2-2.7.8/configure	2009-09-07 20:48:47.656250000 +0900
3@@ -13566,6 +13566,8 @@
4
5 if test "$with_modules" != "no" ; then
6  case "$host" in
7+  *-*-mingw*)
8+  ;;
9   *-*-cygwin*)
10   MODULE_EXTENSION=".dll"
11   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
12@@ -13868,11 +13868,10 @@
13
14     fi
15     case $host_os in
16-       *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
17+       *mingw32*)
18                WITH_THREADS="1"
19                THREADS_W32="Win32"
20 	       THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
21-           fi
22        ;;
23        *cygwin*) THREAD_LIBS=""
24        ;;
25--- misc/libxml2-2.7.8/libxml.h	2007-11-23 19:47:23.000000000 +0900
26+++ misc/build/libxml2-2.7.8/libxml.h	2009-07-10 14:37:34.988250000 +0900
27@@ -30,6 +30,10 @@
28 #include <libxml/xmlversion.h>
29 #else
30 #include "config.h"
31+#ifdef __MINGW32__
32+#undef HAVE_LIBPTHREAD
33+#undef HAVE_PTHREAD_H
34+#endif
35 #include <libxml/xmlversion.h>
36 #endif
37