]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: fix compilation with `--enable-fdp --disable-cdp`
authorVincent Bernat <vincent@bernat.ch>
Tue, 8 Jan 2019 22:19:15 +0000 (17:19 -0500)
committerVincent Bernat <vincent@bernat.ch>
Tue, 8 Jan 2019 22:19:36 +0000 (17:19 -0500)
Fix #315

src/lldpd-structs.h

index c3ffa1088cbcd8cd6fc47b3171597d135b4a6ea6..f6b03d7de821b4fc458d84ebc2a9203d2f8f760d 100644 (file)
@@ -129,7 +129,7 @@ struct lldpd_dot3_power {
 MARSHAL(lldpd_dot3_power);
 #endif
 
-#ifdef ENABLE_CDP
+#if defined (ENABLE_CDP) || defined (ENABLE_FDP)
 struct cdpv2_power {
        u_int16_t request_id;
        u_int16_t management_id;
@@ -273,7 +273,7 @@ struct lldpd_port {
        struct lldpd_med_power   p_med_power;
 #endif
 
-#ifdef ENABLE_CDP
+#if defined (ENABLE_CDP) || defined (ENABLE_FDP)
        struct cdpv2_power p_cdp_power;
 #endif