aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2012-06-18 21:50:59 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2012-06-18 21:50:59 +0000
commit1b0a5c58e299b65762a3cf977b44828205e4e18f (patch)
treebfb871007a28a23b2429218a2aad79b473a1484e /dumpcap.c
parent39f1f0bcb7d528451d0f959e7c8ad801fb089c81 (diff)
Fix compilation on FreeBSD.
svn path=/trunk/; revision=43343
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index e4fe5d6d6e..c9a27559d2 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -36,6 +36,14 @@
# include <sys/types.h>
#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
@@ -91,7 +99,6 @@
#endif
#ifndef _WIN32
-#include <sys/socket.h>
#include <sys/un.h>
#endif