projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1251e1
)
system-linux: fix build error on older kernels
author
Felix Fietkau
<nbd@nbd.name>
Wed, 4 Jul 2018 19:15:58 +0000
(21:15 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 4 Jul 2018 19:16:08 +0000
(21:16 +0200)
Add an #ifdef guard around 56000base* definitions, which don't exist on
Linux 3.18
Signed-off-by: Felix Fietkau <nbd@nbd.name>
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index 21bed29b958b64a6e153761cca28e1756f047b5a..9cd49d09dce7adf2e9141e1e04f32870441468fc 100644
(file)
--- 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)