AF_INET and AF_INET6 undefined in textpcap.c when compiling on FreeBSD
authorStephen Fisher <stephenfisher-wireshark@outlook.com>
Fri, 21 Jun 2013 22:43:24 +0000 (22:43 -0000)
committerStephen Fisher <stephenfisher-wireshark@outlook.com>
Fri, 21 Jun 2013 22:43:24 +0000 (22:43 -0000)
9.1-RELEASE with non-standard gcc 4.6, so pull in sys/socket.h when available.

svn path=/trunk/; revision=50110

text2pcap.c

index 69e3c3c7239c77e34b6ac6d60431976e3ebf2661..1aab81a84e38579f6499cc61b73c73197b93b7b6 100644 (file)
 # 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