From: Roy Marples Date: Fri, 25 Apr 2014 11:11:05 +0000 (+0000) Subject: Fix compile on OpenBSD. X-Git-Tag: v6.4.0~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0d00bc9dd01e6e31ea94fd43c429d3fb7e97edb;p=thirdparty%2Fdhcpcd.git Fix compile on OpenBSD. --- diff --git a/arp.c b/arp.c index 83745f46..93f26634 100644 --- a/arp.c +++ b/arp.c @@ -25,6 +25,10 @@ * SUCH DAMAGE. */ +#include + +#include +#include #include #include diff --git a/dhcp.c b/dhcp.c index b5524000..3791aae2 100644 --- a/dhcp.c +++ b/dhcp.c @@ -35,8 +35,8 @@ #endif #include +#include #include - #include #include #include diff --git a/if-bsd.c b/if-bsd.c index 50001adc..64229b0b 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -42,9 +42,9 @@ #ifdef __FreeBSD__ /* Needed so that including netinet6/in6_var.h works */ # include #endif -#include #include #include +#include #include #include #include diff --git a/ipv6.c b/ipv6.c index 0c5f9b35..b77e7590 100644 --- a/ipv6.c +++ b/ipv6.c @@ -381,9 +381,9 @@ ipv6_checkaddrflags(void *arg) int ifa_flags; ap = arg; - ifa_flags = in6_addr_flags(ap->iface->name, &ap->addr); + ifa_flags = if_addrflags6(ap->iface->name, &ap->addr); if (ifa_flags == -1) - syslog(LOG_ERR, "%s: in6_addr_flags: %m", ap->iface->name); + syslog(LOG_ERR, "%s: if_addrflags6: %m", ap->iface->name); else if (!(ifa_flags & IN6_IFF_TENTATIVE)) { ipv6_handleifa(ap->iface->ctx, RTM_NEWADDR, ap->iface->ctx->ifaces, ap->iface->name,