]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - src/lldpd-structs.h
build: fix compilation with `--enable-fdp --disable-cdp`
[thirdparty/lldpd.git] / 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