aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-04-02 10:44:09 +0000
committerGuy Harris <guy@alum.mit.edu>2001-04-02 10:44:09 +0000
commit6270db715cd43b21ee06c160264e4b421c9691f6 (patch)
tree47d25dfe11a74af4891b8ca454b56c5e50ebd6d4 /epan/to_str.c
parent393b1b3e8dd9bedea24a039f97e15ef37310303f (diff)
Include <string.h> to declare "strlen()", and include <winsock.h> to
declare "struct timeval", so that MSVC++ 6.0 doesn't give an error. svn path=/trunk/; revision=3247
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 73c201cf65..fc01d1f491 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -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>
@@ -28,11 +28,20 @@
#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
@@ -53,10 +62,6 @@
# 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"