define struct timeval if needed
authorBradley Bell <btb@icculus.org>
Mon, 2 Jun 2003 01:58:10 +0000 (01:58 +0000)
committerBradley Bell <btb@icculus.org>
Mon, 2 Jun 2003 01:58:10 +0000 (01:58 +0000)
configure.ac
libmve/mveplay.c

index 1f5d6b9..6538ad8 100644 (file)
@@ -71,7 +71,7 @@ case $host_os in
 esac
 
 AC_CHECK_DECLS(nanosleep,,,[#include <time.h>])
-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
index b377a39..224eb91 100644 (file)
@@ -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 <conf.h>
 #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
  */