• KO Myung-Hun's avatar
    demux: ts: include time.h · 7e419a7f
    KO Myung-Hun authored
    This fixes the following compilation error.
    
    -----
      CC       demux/libts_plugin_la-ts.lo
    demux/ts.c: In function 'EITCallBack':
    demux/ts.c:3114:13: error: implicit declaration of function 'time' [-Werror=implicit-function-declaration]
                 time_t timer = time( NULL );
                 ^
    demux/ts.c:3115:13: error: implicit declaration of function 'difftime' [-Werror=implicit-function-declaration]
                 int64_t diff = difftime( mktime( localtime( &timer ) ),
                 ^
    demux/ts.c:3115:13: error: implicit declaration of function 'mktime' [-Werror=implicit-function-declaration]
    demux/ts.c:3115:13: error: implicit declaration of function 'localtime' [-Werror=implicit-function-declaration]
    demux/ts.c:3116:38: error: implicit declaration of function 'gmtime' [-Werror=implicit-function-declaration]
                                          mktime( gmtime( &timer ) ) );
                                          ^
    -----
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    7e419a7f
ts.c 149 KB