* modules/demux/mkv.cpp: compile fix for systems not supporting gmtime_r().

This commit is contained in:
Gildas Bazin 2003-06-25 09:13:03 +00:00
parent 297cd7399d
commit 9c961cc5b8
2 changed files with 3 additions and 4 deletions

View File

@ -273,7 +273,7 @@ CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcd
dnl Check for system libs needed
need_libc=false
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv)
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty vasprintf swab sigrelse getpwuid memalign posix_memalign gethostbyname2 if_nametoindex atoll getenv putenv setenv gmtime_r)
dnl Check for usual libc functions
AC_CHECK_FUNCS(strdup strndup atof lseek)
@ -2483,7 +2483,6 @@ if test "${enable_basic_skins}" = "yes"; then
fi
PLUGINS="${PLUGINS} basic_skins"
CPPFLAGS_basic_skins="${CPPFLAGS_basic_skins} -DBASIC_SKINS"
fi
dnl

View File

@ -2,7 +2,7 @@
* mkv.cpp : matroska demuxer
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mkv.cpp,v 1.12 2003/06/24 23:00:32 fenrir Exp $
* $Id: mkv.cpp,v 1.13 2003/06/25 09:13:03 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
@ -434,7 +434,7 @@ static int Activate( vlc_object_t * p_this )
msg_Dbg( p_input, "| | + Title=%s", p_sys->psz_title );
}
#ifdef HAVE_TIME_H
#ifdef HAVE_GMTIME_R
else if( EbmlId( *el2 ) == KaxDateUTC::ClassInfos.GlobalId )
{
KaxDateUTC &date = *(KaxDateUTC*)el2;