iproute/iprule: support toolchains without RTA_TABLE routing attribute
authorEugene Rudoy <gene.devel@gmail.com>
Wed, 18 Oct 2017 22:05:11 +0000 (00:05 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 27 Oct 2017 17:25:08 +0000 (19:25 +0200)
commitecce3a1999f3c5ded4baebbc0b17c48d80fe2781
treed353196c6cd7267ecc803acfeec6489540a8c198
parentd3a7e88008880489feb0f0adf1bcf8af1af2e9a7
iproute/iprule: support toolchains without RTA_TABLE routing attribute

 iproute.c: In function 'print_route':
 iproute.c:85:9: error: 'RTA_TABLE' undeclared (first use in this function)
 iproute.c:85:9: note: each undeclared identifier is reported only once for each function it appears in
 iproute.c: In function 'iproute_modify':
 iproute.c:467:36: error: 'RTA_TABLE' undeclared (first use in this function)

Fix it by partially #ifdef'ing the code added in b42107f21538e39d9a344376372f8261aed589b2

Signed-off-by: Eugene Rudoy <gene.devel@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/iproute.c
networking/libiproute/iprule.c