summaryrefslogtreecommitdiff
path: root/text2pcap.c
diff options
context:
space:
mode:
authorStephen Fisher <stephenfisher-wireshark@outlook.com>2013-06-21 22:43:24 +0000
committerStephen Fisher <stephenfisher-wireshark@outlook.com>2013-06-21 22:43:24 +0000
commiteeaba530ac1f511cf094df046a7745c653ffd599 (patch)
treec0179f9074ae8edf5b8a31e29de2f893ec4cb7c2 /text2pcap.c
parentca99b7a50a38c0ac0b1251286859bc0eba71cf9c (diff)
downloadwireshark-eeaba530ac1f511cf094df046a7745c653ffd599.tar.gz
AF_INET and AF_INET6 undefined in textpcap.c when compiling on FreeBSD
9.1-RELEASE with non-standard gcc 4.6, so pull in sys/socket.h when available. svn path=/trunk/; revision=50110
Diffstat (limited to 'text2pcap.c')
-rw-r--r--text2pcap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/text2pcap.c b/text2pcap.c
index 69e3c3c723..1aab81a84e 100644
--- a/text2pcap.c
+++ b/text2pcap.c
@@ -153,6 +153,10 @@
# include "wsutil/inet_aton.h"
#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
#ifdef NEED_INET_V6DEFS_H
# include "wsutil/inet_v6defs.h"
#endif