declare "struct timeval", so that MSVC++ 6.0 doesn't give an error.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3247
f5534014-38df-0310-8fa8-
9805f1628bb7
/* to_str.h
* Routines for utilities to convert various other types to strings.
*
- * $Id: to_str.c,v 1.5 2001/04/02 09:59:41 guy Exp $
+ * $Id: to_str.c,v 1.6 2001/04/02 10:44:09 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
#endif
#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
+#ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+#endif
+
+#ifdef HAVE_WINSOCK_H
+# include <winsock.h> /* for "struct timeval" and "u_char" */
+#endif
+
#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
#endif
# include "inet_v6defs.h"
#endif
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
-
#include "to_str.h"
#include "resolv.h"
#include "pint.h"