]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Define ADVERTISED_(Asym_)?Pause if not defined in linux/ethtool.h
authorVincent Bernat <bernat@luffy.cx>
Thu, 20 Nov 2008 13:55:35 +0000 (14:55 +0100)
committerVincent Bernat <bernat@luffy.cx>
Thu, 20 Nov 2008 13:55:35 +0000 (14:55 +0100)
configure.ac
src/compat.h

index 3009314684ad501155ff0f9fb3431268c5e2f409..609c61276e04b374863aa2467639545ccae32d78 100644 (file)
@@ -41,7 +41,8 @@ AC_ARG_WITH(privsep-chroot,
 # Checks for header files.
 AC_CHECK_DECLS([TAILQ_FIRST, TAILQ_NEXT, TAILQ_FOREACH, TAILQ_EMPTY],[],[],[[#include <sys/queue.h>]])
 AC_CHECK_DECLS([PACKET_ORIGDEV],[],[],[[#include <linux/if_packet.h>]])
-AC_CHECK_DECLS([ADVERTISED_2500baseX_Full],[],[],[[#include <linux/ethtool.h>]])
+AC_CHECK_DECLS([ADVERTISED_2500baseX_Full, ADVERTISED_Pause, ADVERTISED_Asym_Pause],
+                                          [],[],[[#include <linux/ethtool.h>]])
 AC_CHECK_DECLS([ETHERTYPE_VLAN],[],[],[[#include <net/ethernet.h>]])
 
 # Checks for typedefs, structures, and compiler characteristics.
index 77276a51f610db79a09e7ee024d854f3a70ea9f1..2123563714ac03c2a0ec6b75205e03a9f020ea3f 100644 (file)
 #define        TAILQ_EMPTY(head)               ((head)->tqh_first == NULL)
 #endif
 
+#if !HAVE_DECL_ADVERTISED_PAUSE
+#define ADVERTISED_Pause (1 << 13)
+#endif
+
+#if !HAVE_DECL_ADVERTISED_ASYM_PAUSE
+#define ADVERTISED_Asym_Pause (1 << 14)
+#endif
+
 #if !HAVE_DECL_ADVERTISED_2500BASEX_Full
 #define ADVERTISED_2500baseX_Full (1 << 15)
 #endif