Commit 2d31fd77 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Dash: fix win32 compilation

parent 6502b3a0
......@@ -475,7 +475,7 @@ need_libc=false
dnl Check for usual libc functions
AC_CHECK_DECLS([nanosleep],,,[#include <time.h>])
AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r if_nameindex if_nametoindex isatty lstat memalign mmap openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp uselocale])
AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r if_nameindex if_nametoindex isatty lstat memalign mmap openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale])
AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile fsync getdelim getpid gmtime_r inet_pton lldiv localtime_r nrand48 rewind setenv strcasecmp strcasestr strdup strlcpy strncasecmp strndup strnlen strsep strtof strtok_r strtoll swab tdestroy])
AC_CHECK_FUNCS(fdatasync,,
[AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
......
......@@ -81,6 +81,7 @@ bool BasicCMParser::setMPD()
" the stream @type is Live" << std::endl;
return false;
}
#ifdef HAVE_STRPTIME
if ( it != attr.end() )
{
struct tm t;
......@@ -105,6 +106,7 @@ bool BasicCMParser::setMPD()
if ( res != NULL )
this->mpd->setAvailabilityEndTime( mktime( &t ) );
}
#endif
it = attr.find( "mediaPresentationDuration" );
if ( it != attr.end() )
this->mpd->setDuration( str_duration( it->second.c_str() ) );
......
......@@ -26,6 +26,7 @@
#include <sys/types.h>
#include <list>
#include <stdint.h>
namespace dash
{
......
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