Commit 7e419a7f authored by KO Myung-Hun's avatar KO Myung-Hun Committed by Jean-Baptiste Kempf

demux: ts: include time.h

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>
parent eca17502
......@@ -34,6 +34,7 @@
#include <vlc_plugin.h>
#include <assert.h>
#include <time.h>
#include <vlc_access.h> /* DVB-specific things */
#include <vlc_demux.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment