From b58bed720fd6dec9b5f3a8cc89550f386a9a0a1d Mon Sep 17 00:00:00 2001 From: Patrick Caulfield Date: Tue, 7 Nov 2006 14:47:01 +0000 Subject: [PATCH] 2.6.19 kernel headers do not include IFA_RTA so we provide it. Patch from Fabio Massimo Di Nitto git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1290 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/totemip.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)