[vlc-commits] vlc_tick: include headers for struct timeval

Steve Lhomme git at videolan.org
Wed Jul 4 11:12:46 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul  4 11:12:03 2018 +0200| [af100197faf04ae80b49168a33ad6e5fd41415ae] | committer: Steve Lhomme

vlc_tick: include headers for struct timeval

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

 include/vlc_tick.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/vlc_tick.h b/include/vlc_tick.h
index 6908126c7f..7de78ec402 100644
--- a/include/vlc_tick.h
+++ b/include/vlc_tick.h
@@ -32,6 +32,12 @@
 #ifndef __VLC_MTIME_H
 # define __VLC_MTIME_H 1
 
+#ifdef _WIN32
+#include <winsock2.h>
+#else
+#include <sys/time.h>
+#endif
+
 /**
  * High precision date or time interval
  *



More information about the vlc-commits mailing list