summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-08-21 10:11:59 +0000
committerRoy Marples <roy@marples.name>2015-08-21 10:11:59 +0000
commit49e7c8031dbf4bcf5946ef3e21ba92a36bab5a7d (patch)
tree54681effe69c6a96a6447887450d02d9982c1df2
parent4524225f59a09de795da8d24454fa81b13c04473 (diff)
downloaddhcpcd-6.9.2.tar.xz
Fix compile on OpenBSDdhcpcd-6.9.2
-rw-r--r--ipv6.c4
1 files changed, 4 insertions, 0 deletions
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)