[vlc-commits] demux: ts: include time.h
KO Myung-Hun
git at videolan.org
Sat Aug 16 08:44:05 CEST 2014
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sat Aug 16 15:32:50 2014 +0900| [7e419a7f2eddaf30cfd98c8b4b9ae4088cff6651] | committer: 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: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7e419a7f2eddaf30cfd98c8b4b9ae4088cff6651
---
modules/demux/ts.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 7637677..d472693 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -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>
More information about the vlc-commits
mailing list