/*
* Author: Thomas E. Dickey
*
- * $Id: dots_termcap.c,v 1.5 2013/06/09 00:09:46 tom Exp $
+ * $Id: dots_termcap.c,v 1.6 2013/09/07 23:12:30 Ray.Donnelly Exp $
*
* A simple demo of the termcap interface.
*/
#define USE_TINFO
#include <test.priv.h>
+#if !defined(__MINGW32__)
+#include <sys/time.h>
+#endif
+
#if HAVE_TGETENT
#include <time.h>
static void
my_napms(int ms)
{
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || !HAVE_GETTIMEOFDAY
Sleep(ms);
#else
struct timeval data;