diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-07-04 21:15:58 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-07-04 21:16:08 +0200 |
commit | 03785fb09734be05a721318d2b5378ae1656f64c (patch) | |
tree | df6f09af12c653031d66dfc81ebdbd1f8f14252f | |
parent | d1251e1baad4d32c04eeda56738222e7d1d98853 (diff) |
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 <nbd@nbd.name>
-rw-r--r-- | system-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |