demux: ts: include time.h
authorKO Myung-Hun <komh78@gmail.com>
Sat, 16 Aug 2014 06:32:50 +0000 (15:32 +0900)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 16 Aug 2014 06:43:17 +0000 (08:43 +0200)
commit7e419a7f2eddaf30cfd98c8b4b9ae4088cff6651
tree1e912ecb9192ddde577bb65b3063c88623dfabfa
parenteca17502f763e2257c8044bd54f7f613e4b2c747
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: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/ts.c