From: Roy Marples Date: Fri, 21 Aug 2015 10:11:59 +0000 (+0000) Subject: Fix compile on OpenBSD X-Git-Tag: v6.9.2^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49e7c8031dbf4bcf5946ef3e21ba92a36bab5a7d;p=thirdparty%2Fdhcpcd.git Fix compile on OpenBSD --- diff --git a/ipv6.c b/ipv6.c index 8d65420d..9fded405 100644 --- 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)