summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2006-12-11 22:43:57 +0000
committerTrent Lloyd <lathiat@bur.st>2006-12-11 22:43:57 +0000
commitef98a3da45ebbc3bbf9601a3eef1a4eb65fb9a84 (patch)
tree99eb76641d668fd89ed6c0e3b23db7a6efaae229
parentfb09d84111eaa48462cf49879547f815dd0f08f6 (diff)
* Also fix < 2.6.19 builds for avahi-autoipd.
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1338 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-autoipd/iface-linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/avahi-autoipd/iface-linux.c b/avahi-autoipd/iface-linux.c
index 13d2895..2ad8a61 100644
--- a/avahi-autoipd/iface-linux.c
+++ b/avahi-autoipd/iface-linux.c
@@ -40,12 +40,13 @@
#include <avahi-common/llist.h>
#include <avahi-common/malloc.h>
-#include <linux/if_addr.h>
#ifndef IFLA_RTA
+#include <linux/if_addr.h>
#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
#endif
#ifndef IFA_RTA
+#include <linux/if_addr.h>
#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
#endif