From: Roy Marples Date: Thu, 25 Jul 2019 16:31:02 +0000 (+0100) Subject: Fix define for prior X-Git-Tag: v8.0.2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91949d8d314978619180a2bc820ac67f7617d2bf;p=thirdparty%2Fdhcpcd.git Fix define for prior --- diff --git a/src/ipv6.c b/src/ipv6.c index 0a3ba8c1..f9eecf53 100644 --- a/src/ipv6.c +++ b/src/ipv6.c @@ -628,7 +628,7 @@ ipv6_addaddr1(struct ipv6_addr *ia, const struct timespec *now) struct interface *ifp; uint32_t pltime, vltime; __printflike(1, 2) void (*logfunc)(const char *, ...); -#ifndef SMALL +#ifdef ND6_ADVERTISE bool vltime_was_zero; #endif #ifdef __sun @@ -698,7 +698,7 @@ ipv6_addaddr1(struct ipv6_addr *ia, const struct timespec *now) " seconds", ifp->name, ia->prefix_pltime, ia->prefix_vltime); -#ifndef SMALL +#ifdef ND6_ADVERTISE vltime_was_zero = ia->prefix_vltime == 0; #endif if (if_address6(RTM_NEWADDR, ia) == -1) {