File libxslt-1.1.28-windows.patch of Package mingw32-libxslt

--- libxslt-1.1.28/configure.in	2012-11-21 08:10:58.000000000 +0100
+++ libxslt-1.1.28/configure.in	2015-05-05 09:25:19.582003244 +0200
@@ -626,7 +626,7 @@
  WIN32_EXTRA_LDFLAGS="-no-undefined"
  ;;
  *-*-mingw*)
- WIN32_EXTRA_LIBADD="-lwsock32"
+ WIN32_EXTRA_LIBADD="-lws2_32 -lmswsock"
  WIN32_EXTRA_LDFLAGS="-no-undefined"
  AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
  AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
--- libxslt-1.1.28/libxslt/security.c	2012-09-12 07:58:14.000000000 +0200
+++ libxslt-1.1.28/libxslt/security.c	2015-05-05 09:25:19.582003244 +0200
@@ -39,6 +39,7 @@
 #ifndef INVALID_FILE_ATTRIBUTES
 #define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
 #endif
+#define mkdir(d,m) _mkdir(d)
 #endif
 
 #ifndef HAVE_STAT
--- libxslt-1.1.28/tests/plugins/Makefile.am	2012-11-21 04:08:02.000000000 +0100
+++ libxslt-1.1.28/tests/plugins/Makefile.am	2015-05-05 09:24:07.244541655 +0200
@@ -21,7 +21,9 @@
 xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)
 xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c
 xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS)
-xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version -rpath $(plugindir)
+xmlsoft_org_xslt_testplugin_la_LDFLAGS =					\
+		$(WIN32_EXTRA_LDFLAGS)			\
+		-module -avoid-version -rpath $(plugindir)
 
 test-logall:
 	@echo '## Running plugin tests'
openSUSE Build Service is sponsored by