[vlc-commits] contrib: shout: fix winstore build
Steve Lhomme
git at videolan.org
Fri Jun 19 09:06:32 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar 5 12:06:09 2019 +0100| [7c56c6be6711d002cef8d162758707fff08b9ef7] | committer: Steve Lhomme
contrib: shout: fix winstore build
addrinfo is available in ws2tcpip.h
(cherry picked from commit 886920538b85cc19474289c122aba0f3883d5eb6)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7c56c6be6711d002cef8d162758707fff08b9ef7
---
contrib/src/shout/rules.mak | 1 +
contrib/src/shout/should-win32-ws2tcpip.patch | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/contrib/src/shout/rules.mak b/contrib/src/shout/rules.mak
index ea6d307d34..02279db061 100644
--- a/contrib/src/shout/rules.mak
+++ b/contrib/src/shout/rules.mak
@@ -28,6 +28,7 @@ libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
$(APPLY) $(SRC)/shout/shout-win32-socklen.patch
$(APPLY) $(SRC)/shout/no-examples.patch
$(APPLY) $(SRC)/shout/no-force-libwsock.patch
+ $(APPLY) $(SRC)/shout/should-win32-ws2tcpip.patch
$(call pkg_static,"shout.pc.in")
$(UPDATE_AUTOCONFIG)
$(MOVE)
diff --git a/contrib/src/shout/should-win32-ws2tcpip.patch b/contrib/src/shout/should-win32-ws2tcpip.patch
new file mode 100644
index 0000000000..f45a869753
--- /dev/null
+++ b/contrib/src/shout/should-win32-ws2tcpip.patch
@@ -0,0 +1,10 @@
+--- libshout/src/common/net/resolver.c.ws2tcpip 2015-01-27 19:08:54.000000000 +0100
++++ libshout/src/common/net/resolver.c 2019-03-05 12:02:46.595628700 +0100
+@@ -39,6 +39,7 @@
+ #include <arpa/inet.h>
+ #else
+ #include <winsock2.h>
++#include <ws2tcpip.h>
+ #endif
+
+ #ifndef NO_THREAD
More information about the vlc-commits
mailing list