[vlc-commits] contrib: medialibrary: backport upstream fix to build with modern G++
Steve Lhomme
git at videolan.org
Wed Jun 3 13:46:29 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 27 11:31:25 2020 +0200| [48ff5a38a26968571c58960ec68bf4d939ed5b7f] | committer: Steve Lhomme
contrib: medialibrary: backport upstream fix to build with modern G++
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=48ff5a38a26968571c58960ec68bf4d939ed5b7f
---
...dialibrary-IDeviceLister.h-Include-string.patch | 25 ++++++++++++++++++++++
contrib/src/medialibrary/rules.mak | 1 +
2 files changed, 26 insertions(+)
diff --git a/contrib/src/medialibrary/0001-include-medialibrary-IDeviceLister.h-Include-string.patch b/contrib/src/medialibrary/0001-include-medialibrary-IDeviceLister.h-Include-string.patch
new file mode 100644
index 0000000000..0827a7e09b
--- /dev/null
+++ b/contrib/src/medialibrary/0001-include-medialibrary-IDeviceLister.h-Include-string.patch
@@ -0,0 +1,25 @@
+From 168ae35bde46a713bf08cbb4bc3456a427531e32 Mon Sep 17 00:00:00 2001
+From: Christopher Degawa <ccom at randomderp.com>
+Date: Wed, 13 May 2020 19:53:28 +0000
+Subject: [PATCH] include/medialibrary/IDeviceLister.h: Include string
+
+`std::string` is used, but string is not included, causing errors when compiling with mingw-w64
+---
+ include/medialibrary/IDeviceLister.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/medialibrary/IDeviceLister.h b/include/medialibrary/IDeviceLister.h
+index f6324610..299e5995 100644
+--- a/include/medialibrary/IDeviceLister.h
++++ b/include/medialibrary/IDeviceLister.h
+@@ -24,6 +24,7 @@
+
+ #include <tuple>
+ #include <vector>
++#include <string>
+
+ namespace medialibrary
+ {
+--
+2.26.0.windows.1
+
diff --git a/contrib/src/medialibrary/rules.mak b/contrib/src/medialibrary/rules.mak
index 55642b35e6..0741385b76 100644
--- a/contrib/src/medialibrary/rules.mak
+++ b/contrib/src/medialibrary/rules.mak
@@ -20,6 +20,7 @@ medialibrary: medialibrary-$(MEDIALIBRARY_VERSION).tar.xz .sum-medialibrary
rm -rf $@-$(MEDIALIBRARY_VERSION) $@
mkdir -p $@-$(MEDIALIBRARY_VERSION)
tar xvf "$<" --strip-components=1 -C $@-$(MEDIALIBRARY_VERSION)
+ $(APPLY) $(SRC)/medialibrary/0001-include-medialibrary-IDeviceLister.h-Include-string.patch
$(call pkg_static, "medialibrary.pc.in")
$(UPDATE_AUTOCONFIG)
$(MOVE)
More information about the vlc-commits
mailing list