From: Ben Pfaff Date: Wed, 3 Oct 2018 22:39:32 +0000 (-0700) Subject: netdev-linux: Don't include . X-Git-Tag: v2.12.3~1127 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=64ed99ffbc4298f8a298b20f503e188b35398546;p=mirror_ovs.git netdev-linux: Don't include . This header only defines sockaddr_pkt, which this source file doesn't use. This was the only user of net/if_packet.h, so also remove the configure-time test for it (which netdev-linux wasn't using anyway). Reported-by: Andre McCurdy Reported-at: https://github.com/openvswitch/ovs/pull/253 Signed-off-by: Ben Pfaff --- diff --git a/acinclude.m4 b/acinclude.m4 index 8d8503498..ed83df43d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -906,17 +906,6 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ fi ]) -dnl Checks for net/if_packet.h. -AC_DEFUN([OVS_CHECK_IF_PACKET], - [AC_CHECK_HEADER([net/if_packet.h], - [HAVE_IF_PACKET=yes], - [HAVE_IF_PACKET=no]) - AM_CONDITIONAL([HAVE_IF_PACKET], [test "$HAVE_IF_PACKET" = yes]) - if test "$HAVE_IF_PACKET" = yes; then - AC_DEFINE([HAVE_IF_PACKET], [1], - [Define to 1 if net/if_packet.h is available.]) - fi]) - dnl Checks for net/if_dl.h. dnl dnl (We use this as a proxy for checking whether we're building on FreeBSD diff --git a/configure.ac b/configure.ac index aa92b151a..2b3800310 100644 --- a/configure.ac +++ b/configure.ac @@ -96,7 +96,6 @@ OVS_CHECK_PYTHON OVS_CHECK_FLAKE8 OVS_CHECK_SPHINX OVS_CHECK_DOT -OVS_CHECK_IF_PACKET OVS_CHECK_IF_DL OVS_CHECK_STRTOK_R AC_CHECK_DECLS([sys_siglist], [], [], [[#include ]]) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 3c6eb48ea..f86dcd06e 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include #include