From: Vincent Bernat Date: Mon, 17 Nov 2008 08:32:51 +0000 (+0100) Subject: Fix checks for header files in configure.ac X-Git-Tag: 0.2~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4de7bd54cd0c1576cebe3f17465bafc471cb3c23;p=thirdparty%2Flldpd.git Fix checks for header files in configure.ac --- diff --git a/configure.ac b/configure.ac index bd3f9563..bb25f777 100644 --- a/configure.ac +++ b/configure.ac @@ -24,8 +24,9 @@ AM_CONDITIONAL([USE_SNMP], [test "${with_snmp}" != "no"]) # Checks for header files. AC_CHECK_DECLS([TAILQ_FIRST, TAILQ_NEXT, TAILQ_FOREACH, TAILQ_EMPTY],[],[],[[#include ]]) -AC_CHECK_DECL([PACKET_ORIGDEV],[],[],[[#include ]]) -AC_CHECK_DECL([ADVERTISED_2500baseX_Full],[],[],[[#include ]]) +AC_CHECK_DECLS([PACKET_ORIGDEV],[],[],[[#include ]]) +AC_CHECK_DECLS([ADVERTISED_2500baseX_Full],[],[],[[#include ]]) +AC_CHECK_DECLS([ETHERTYPE_VLAN],[],[],[[#include ]]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST diff --git a/src/compat.h b/src/compat.h index 8e1528f9..77276a51 100644 --- a/src/compat.h +++ b/src/compat.h @@ -55,3 +55,7 @@ #if !HAVE_DECL_PACKET_ORIGDEV #define PACKET_ORIGDEV 9 #endif + +#if !HAVE_DECL_ETHERTYPE_VLAN +#define ETHERTYPE_VLAN 0x8100 +#endif diff --git a/src/lldpd.c b/src/lldpd.c index 48fb4836..5a649aee 100644 --- a/src/lldpd.c +++ b/src/lldpd.c @@ -32,11 +32,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include