diff options
Diffstat (limited to 'net/dhcpcd/patches/patch-aa')
-rw-r--r-- | net/dhcpcd/patches/patch-aa | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net/dhcpcd/patches/patch-aa b/net/dhcpcd/patches/patch-aa new file mode 100644 index 00000000000..7cb3058e487 --- /dev/null +++ b/net/dhcpcd/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.3 2010/12/07 22:53:48 abs Exp $ + +--- if-bsd.c.orig 2010-12-05 21:31:47.000000000 +0000 ++++ if-bsd.c +@@ -37,10 +37,12 @@ + #include <net/if_dl.h> + #include <net/route.h> + #include <netinet/in.h> +-#ifdef __DragonFly__ ++#ifndef __APPLE__ ++# ifdef __DragonFly__ + # include <netproto/802_11/ieee80211_ioctl.h> +-#else ++# else + # include <net80211/ieee80211_ioctl.h> ++# endif + #endif + + #include <errno.h> +@@ -342,6 +344,7 @@ manage_link(int fd) + for (p = link_buf; p < e; p += rtm->rtm_msglen) { + rtm = (struct rt_msghdr *)(void *)p; + switch(rtm->rtm_type) { ++#ifdef RTM_IFANNOUNCE + case RTM_IFANNOUNCE: + ifan = (struct if_announcemsghdr *)(void *)p; + switch(ifan->ifan_what) { +@@ -353,6 +356,7 @@ manage_link(int fd) + break; + } + break; ++#endif + case RTM_IFINFO: + ifm = (struct if_msghdr *)(void *)p; + memset(ifname, 0, sizeof(ifname)); |