[vlc-devel] [PATCH] vlc_fixups: add a dummy struct timezone definition
Rémi Denis-Courmont
remi at remlab.net
Mon Jul 11 17:13:01 CEST 2016
Le maanantaina 11. heinäkuuta 2016, 13.20.44 EEST Steve Lhomme a écrit :
> clang doesn't match undefined structure pointers between files and complains
All you need is 'struct timezone;'.
> ---
> 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
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list