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
This commit is contained in:
Patrick Caulfield 2006-11-07 14:47:01 +00:00
parent 336dc17daa
commit b58bed720f

View File

@ -63,6 +63,16 @@
/* ARGH!! I hate netlink */
#include <asm/types.h>
#include <linux/rtnetlink.h>
/* this should catch 2.6.19 headers */
#ifndef IFA_MAX
#include <linux/if_addr.h>
#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)