]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix define for prior
authorRoy Marples <roy@marples.name>
Thu, 25 Jul 2019 16:31:02 +0000 (17:31 +0100)
committerRoy Marples <roy@marples.name>
Thu, 25 Jul 2019 16:31:02 +0000 (17:31 +0100)
src/ipv6.c

index 0a3ba8c1e0bb8a6639c79fb422e8b5faa75adbce..f9eecf532a15f91e5bb9d3665b01fc67618aff0c 100644 (file)
@@ -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) {