Mercurial > hg > dhcpcd
changeset 5341:b5656c618975 draft
Linux: Fix compile for systems without route preference
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 10 Jun 2020 07:16:41 +0100 |
| parents | c97954e1f986 |
| children | 8b216a105409 |
| files | src/if-linux.c |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/if-linux.c Wed Jun 10 07:13:21 2020 +0100 +++ b/src/if-linux.c Wed Jun 10 07:16:41 2020 +0100 @@ -1513,6 +1513,7 @@ (unsigned short)RTA_PAYLOAD(metrics)); } +#ifdef HAVE_ROUTE_PREF if (rt->rt_dflags & RTDF_RA) { uint8_t pref; @@ -1532,6 +1533,7 @@ } add_attr_8(&nlm.hdr, sizeof(nlm), RTA_PREF, pref); } +#endif } if (!sa_is_loopback(&rt->rt_gateway))
