From 4077edb92a6a337588620e1a69f600f6976ea60c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 2 Apr 2012 11:43:41 +0200 Subject: [PATCH] lldp: allow compilation with LLDPMED disabled but Dot3 enabled. --- src/lldp.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lldp.h b/src/lldp.h index 273cb730..d798264f 100644 --- a/src/lldp.h +++ b/src/lldp.h @@ -231,11 +231,6 @@ enum { #define LLDPMED_POW_SOURCE_LOCAL 6 #define LLDPMED_POW_SOURCE_BOTH 7 -#define LLDPMED_POW_PRIO_UNKNOWN 0 -#define LLDPMED_POW_PRIO_CRITICAL 1 -#define LLDPMED_POW_PRIO_HIGH 2 -#define LLDPMED_POW_PRIO_LOW 3 - #define LLDPMED_CAP_CAP 0x01 #define LLDPMED_CAP_POLICY 0x02 #define LLDPMED_CAP_LOCATION 0x04 @@ -245,4 +240,11 @@ enum { #endif /* ENABLE_LLDPMED */ +#if defined (ENABLE_LLDPMED) || defined (ENABLE_DOT3) +#define LLDPMED_POW_PRIO_UNKNOWN 0 +#define LLDPMED_POW_PRIO_CRITICAL 1 +#define LLDPMED_POW_PRIO_HIGH 2 +#define LLDPMED_POW_PRIO_LOW 3 +#endif + #endif /* _LLDP_H */ -- 2.39.5