Include <string.h> to declare "strlen()", and include <winsock.h> to
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 2 Apr 2001 10:44:09 +0000 (10:44 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 2 Apr 2001 10:44:09 +0000 (10:44 +0000)
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

epan/to_str.c

index 73c201cf65d2b6187150b9419bbdb7bec6366fdd..fc01d1f4918301495290fba432dea11037e67b15 100644 (file)
@@ -1,7 +1,7 @@
 /* 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"