diff --git a/exec/totemip.c b/exec/totemip.c index cb46cb0e..9b2236ac 100644 --- a/exec/totemip.c +++ b/exec/totemip.c @@ -63,6 +63,16 @@ /* ARGH!! I hate netlink */ #include #include + +/* this should catch 2.6.19 headers */ +#ifndef IFA_MAX +#include +#endif +/* redefine macro that disappeared in 2.6.19 */ +#ifndef IFA_RTA +#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) +#endif + #endif #if ! defined(OPENAIS_SOLARIS) && ! defined(s6_addr16)