AC_MSG_RESULT(no)])
dnl Check for headers
-AC_CHECK_HEADERS(time.h getopt.h strings.h locale.h)
+AC_CHECK_HEADERS(getopt.h strings.h locale.h)
AC_CHECK_HEADERS(fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
# include "tables/eit.h"
# endif
#endif
-#ifdef HAVE_TIME_H
-# include <time.h>
-#endif
+#include <time.h>
#undef TS_DEBUG
/*****************************************************************************
if( pi_time )
*pi_time = 0;
-#ifdef HAVE_TIME_H
if( p_sys->b_access_control && p_sys->i_dvb_length > 0 )
{
/* FIXME we should not use time() but read the date from the tdt */
return VLC_SUCCESS;
}
}
-#endif
return VLC_EGENERIC;
}
#include <vlc_sout.h>
#include <vlc_block.h>
-#ifdef HAVE_TIME_H
#include <time.h>
-#endif
#include <vlc_iso_lang.h>
#include "vlc_meta.h"
static int64_t get_timestamp(void)
{
- int64_t i_timestamp = 0;
+ int64_t i_timestamp = time(NULL);
-#ifdef HAVE_TIME_H
- i_timestamp = time(NULL);
i_timestamp += 2082844800; // MOV/MP4 start date is 1/1/1904
// 208284480 is (((1970 - 1904) * 365) + 17) * 24 * 60 * 60
-#endif
return i_timestamp;
}
* Preamble
*****************************************************************************/
-#ifdef HAVE_TIME_H
-# include <time.h>
-#endif
-
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/time.h> /* gettimeofday() */
#endif
-#ifdef HAVE_TIME_H
-# include <time.h> /* ctime() */
-# include <sys/timeb.h> /* ftime() */
+#include <time.h> /* ctime() */
+#if defined (WIN32) && !defined (UNDER_CE)
+#include <sys/timeb.h> /* ftime() */
#endif
#include <vlc_input.h>
# include <sys/time.h> /* gettimeofday() */
#endif
-#ifdef HAVE_TIME_H
-# include <time.h> /* ctime() */
-# include <sys/timeb.h> /* ftime() */
-#endif
+#include <time.h> /* ctime() */
#include <vlc_input.h>
#include "input_internal.h"