aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-03 19:35:16 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-08-03 19:35:16 +0000
commitb5a6886b1613e7039decd8207200b8de5a23113e (patch)
tree364ebccc96b64626793d56489791e3d37dba9946 /epan/to_str.c
parent9f2a24c5472fc531a1ca86daadf6eaa5c471555e (diff)
<netinet/in.h> is needed for <arpa/inet.h>, at least on some platforms,
and <sys/types.h> is needed for <netinet/in.h>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5936 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 1e0cc363e4..bd584c3948 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -1,7 +1,7 @@
/* to_str.c
* Routines for utilities to convert various other types to strings.
*
- * $Id: to_str.c,v 1.15 2002/08/02 21:29:40 jmayer Exp $
+ * $Id: to_str.c,v 1.16 2002/08/03 19:35:16 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -29,10 +29,18 @@
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h> /* needed for <netinet/in.h> */
+#endif
+
#ifdef NEED_SNPRINTF_H
# include "snprintf.h"
#endif
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h> /* needed for <arpa/inet.h> on some platforms */
+#endif
+
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif