[vlc-devel] [PATCH] vlc_fixups: add a dummy struct timezone definition

Steve Lhomme robux4 at videolabs.io
Mon Jul 11 13:20:44 CEST 2016


clang doesn't match undefined structure pointers between files and complains
---
 include/vlc_fixups.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 52209dc..67ff5e8 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -225,6 +225,10 @@ int timespec_get(struct timespec *, int);
 
 /* sys/time.h */
 #ifndef HAVE_GETTIMEOFDAY
+struct timezone {
+    int tz_minuteswest;
+    int tz_dsttime;
+};
 int gettimeofday(struct timeval *, struct timezone *);
 #endif
 
-- 
2.8.2



More information about the vlc-devel mailing list