[vlc-commits] contrib: shout: timeval is defined in winsock2.h on Windows

Steve Lhomme git at videolan.org
Fri Mar 30 17:32:53 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Mar 29 15:06:53 2018 +0200| [651e85409d9dc44c35e8a13552fc17675f4c9bf5] | committer: Steve Lhomme

contrib: shout: timeval is defined in winsock2.h on Windows

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=651e85409d9dc44c35e8a13552fc17675f4c9bf5
---

 contrib/src/shout/rules.mak           |  1 +
 contrib/src/shout/shout-timeval.patch | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/contrib/src/shout/rules.mak b/contrib/src/shout/rules.mak
index ac34c59a29..6940cc0a79 100644
--- a/contrib/src/shout/rules.mak
+++ b/contrib/src/shout/rules.mak
@@ -24,6 +24,7 @@ libshout: libshout-$(SHOUT_VERSION).tar.gz .sum-shout
 	$(APPLY) $(SRC)/shout/libshout-arpa.patch
 	$(APPLY) $(SRC)/shout/fix-xiph_openssl.patch
 	$(APPLY) $(SRC)/shout/shout-strings.patch
+	$(APPLY) $(SRC)/shout/shout-timeval.patch
 	$(call pkg_static,"shout.pc.in")
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
diff --git a/contrib/src/shout/shout-timeval.patch b/contrib/src/shout/shout-timeval.patch
new file mode 100644
index 0000000000..6d05058446
--- /dev/null
+++ b/contrib/src/shout/shout-timeval.patch
@@ -0,0 +1,10 @@
+--- libshout/src/common/timing/timing.c.timeval	2015-01-27 19:08:54.000000000 +0100
++++ libshout/src/common/timing/timing.c	2018-03-29 10:33:11.505409500 +0200
+@@ -35,6 +35,7 @@
+ #ifdef _WIN32
+ #include <windows.h>
+ #include <mmsystem.h>
++#include <winsock2.h>
+ #else
+ #ifdef TIME_WITH_SYS_TIME
+ #  include <sys/time.h>



More information about the vlc-commits mailing list