mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-24 12:33:06 +00:00
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:
parent
336dc17daa
commit
b58bed720f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user