From 4a6a562f29e370fbe621fa84349be9ea4b947448 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Mon, 2 Jun 2003 01:58:10 +0000 Subject: [PATCH] define struct timeval if needed --- configure.ac | 2 +- libmve/mveplay.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1f5d6b92..6538ad89 100644 --- a/configure.ac +++ b/configure.ac @@ -71,7 +71,7 @@ case $host_os in esac AC_CHECK_DECLS(nanosleep,,,[#include ]) -AC_CHECK_TYPES(struct timespec) +AC_CHECK_TYPES([struct timespec, struct timeval]) AM_CONDITIONAL(MINGW32, test x$MINGW32 = xyes) if test x$MINGW32 = xyes; then diff --git a/libmve/mveplay.c b/libmve/mveplay.c index b377a394..224eb91d 100644 --- a/libmve/mveplay.c +++ b/libmve/mveplay.c @@ -1,4 +1,4 @@ -/* $Id: mveplay.c,v 1.11 2003-04-30 20:05:52 btb Exp $ */ +/* $Id: mveplay.c,v 1.12 2003-06-02 01:58:10 btb Exp $ */ #ifdef HAVE_CONFIG_H #include #endif @@ -122,6 +122,13 @@ static int end_movie_handler(unsigned char major, unsigned char minor, unsigned * timer handlers *************************/ +#if !HAVE_STRUCT_TIMEVAL +struct timeval { + long tv_sec; + long tv_usec; +}; +#endif + /* * timer variables */ -- 2.39.2