summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--external/libxslt/UnpackedTarball_xslt.mk1
-rw-r--r--external/libxslt/libxslt-vc15.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/external/libxslt/UnpackedTarball_xslt.mk b/external/libxslt/UnpackedTarball_xslt.mk
index b81cd1d7a1c2..5c44e0ec479a 100644
--- a/external/libxslt/UnpackedTarball_xslt.mk
+++ b/external/libxslt/UnpackedTarball_xslt.mk
@@ -21,6 +21,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,xslt,\
$(if $(filter ANDROID,$(OS)),external/libxslt/libxslt-android.patch) \
external/libxslt/libxslt-config-guess.patch.0 \
external/libxslt/rpath.patch.0 \
+ external/libxslt/libxslt-vc15.patch \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/libxslt/libxslt-vc15.patch b/external/libxslt/libxslt-vc15.patch
new file mode 100644
index 000000000000..47b070883234
--- /dev/null
+++ b/external/libxslt/libxslt-vc15.patch
@@ -0,0 +1,13 @@
+diff -ur xslt.org/libxslt/win32config.h xslt/libxslt/win32config.h
+--- misc/xslt/libxslt/win32config.h 2015-07-04 22:36:52.522061462 +0200
++++ misc/xslt/libxslt/win32config.h 2015-07-04 22:37:33.023064181 +0200
+@@ -79,7 +79,9 @@
+ #include <direct.h>
+ #if defined(_MSC_VER) || defined(__MINGW32__)
+ #define mkdir(p,m) _mkdir(p)
++#if _MSC_VER < 1900
+ #define snprintf _snprintf
++#endif
+ #if _MSC_VER < 1500
+ #define vsnprintf(b,c,f,a) _vsnprintf(b,c,f,a)
+ #endif