X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftcpconns.c;h=8f40be6f786b13d901c4ee5847580c0a01db270e;hb=d69c181126dcf75dcc1c93954463ba32ca340b39;hp=5d4bb6966f98b024e57ffc7fd0956082777212ab;hpb=649eff4e6f96ba72d693c1442acaa62abdf965e0;p=collectd.git diff --git a/src/tcpconns.c b/src/tcpconns.c index 5d4bb696..8f40be6f 100644 --- a/src/tcpconns.c +++ b/src/tcpconns.c @@ -71,13 +71,10 @@ #if KERNEL_LINUX # include -/* sys/socket.h is necessary to compile when using netlink on older systems. */ -# include # include #if HAVE_LINUX_INET_DIAG_H # include #endif -# include # include /* #endif KERNEL_LINUX */ @@ -90,9 +87,6 @@ #if HAVE_SYS_TYPES_H # include #endif -#if HAVE_SYS_SOCKET_H -# include -#endif #if HAVE_NET_IF_H # include #endif @@ -113,7 +107,6 @@ /* This is for OpenBSD and NetBSD. */ #elif HAVE_LIBKVM_NLIST # include -# include # include # include # include