]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on OpenBSD v6.9.2
authorRoy Marples <roy@marples.name>
Fri, 21 Aug 2015 10:11:59 +0000 (10:11 +0000)
committerRoy Marples <roy@marples.name>
Fri, 21 Aug 2015 10:11:59 +0000 (10:11 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 8d65420d6cd6913577e94e348ebede0d31999aed..9fded405a5188152d559039ea3e1bd724322f269 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -645,7 +645,11 @@ ipv6_addaddr(struct ipv6_addr *ap, const struct timespec *now)
 
        logger(ap->iface->ctx, ap->flags & IPV6_AF_NEW ? LOG_INFO : LOG_DEBUG,
            "%s: adding %saddress %s", ap->iface->name,
+#ifdef IPV6_AF_TEMPORARY
            ap->flags & IPV6_AF_TEMPORARY ? "temporary " : "",
+#else
+           "",
+#endif
            ap->saddr);
        if (ap->prefix_pltime == ND6_INFINITE_LIFETIME &&
            ap->prefix_vltime == ND6_INFINITE_LIFETIME)