From: Felix Fietkau Date: Wed, 4 Jul 2018 19:15:58 +0000 (+0200) Subject: system-linux: fix build error on older kernels X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03785fb09734be05a721318d2b5378ae1656f64c;p=oweals%2Fnetifd.git system-linux: fix build error on older kernels Add an #ifdef guard around 56000base* definitions, which don't exist on Linux 3.18 Signed-off-by: Felix Fietkau --- diff --git a/system-linux.c b/system-linux.c index 21bed29..9cd49d0 100644 --- a/system-linux.c +++ b/system-linux.c @@ -1700,10 +1700,12 @@ static const struct { { ADVERTISED_40000baseCR4_Full, "40000baseCR4-F" }, { ADVERTISED_40000baseSR4_Full, "40000baseSR4-F" }, { ADVERTISED_40000baseLR4_Full, "40000baseLR4-F" }, +#ifdef ADVERTISED_56000baseKR4_Full { ADVERTISED_56000baseKR4_Full, "56000baseKR4-F" }, { ADVERTISED_56000baseCR4_Full, "56000baseCR4-F" }, { ADVERTISED_56000baseSR4_Full, "56000baseSR4-F" }, { ADVERTISED_56000baseLR4_Full, "56000baseLR4-F" }, +#endif }; static void system_add_link_modes(struct blob_buf *b, __u32 mask)