diff options
| -rw-r--r-- | networking/libiproute/ipaddress.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 91fabb1fd..dfd84c000 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
| @@ -21,10 +21,15 @@ | |||
| 21 | #define IFF_LOWER_UP 0x10000 /* driver signals L1 up */ | 21 | #define IFF_LOWER_UP 0x10000 /* driver signals L1 up */ |
| 22 | #endif | 22 | #endif |
| 23 | 23 | ||
| 24 | /* for old uclibc */ | ||
| 24 | #ifndef IFA_F_NOPREFIXROUTE | 25 | #ifndef IFA_F_NOPREFIXROUTE |
| 25 | # define IFA_FLAGS 8 | 26 | # define IFA_FLAGS 8 |
| 26 | /* ifa_flags */ | ||
| 27 | # define IFA_F_NOPREFIXROUTE 0x200 | 27 | # define IFA_F_NOPREFIXROUTE 0x200 |
| 28 | enum { /* can't do this with preporcessor, IFA_MAX is an (enum - 1), not preprocessor constant */ | ||
| 29 | REAL_IFA_MAX = (IFA_MAX >= IFA_FLAGS) ? IFA_MAX : IFA_FLAGS, | ||
| 30 | }; | ||
| 31 | # undef IFA_MAX | ||
| 32 | # define IFA_MAX REAL_IFA_MAX | ||
| 28 | #endif | 33 | #endif |
| 29 | 34 | ||
| 30 | struct filter_t { | 35 | struct filter_t { |
