]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix def
authorRoy Marples <roy@marples.name>
Mon, 10 Jun 2013 09:10:18 +0000 (09:10 +0000)
committerRoy Marples <roy@marples.name>
Mon, 10 Jun 2013 09:10:18 +0000 (09:10 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index b050d5120797dc521ff3b0061ed7792b3f1b7def..b706ab2f41465f74ecaeb9fa77c75e1bd8e5074f 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -925,7 +925,7 @@ ipv6_buildroutes(void)
 
        /* First add reachable routers and their prefixes */
        ipv6_build_ra_routes(&dnr, 0);
-#ifdef HAVE_ROUTE_METRIC
+#if HAVE_ROUTE_METRIC
        have_default = (TAILQ_FIRST(&dnr) != NULL);
 #endif
 
@@ -935,7 +935,7 @@ ipv6_buildroutes(void)
        ipv6_build_dhcp_routes(&dnr, DH6S_BOUND);
        ipv6_build_dhcp_routes(&dnr, DH6S_DELEGATED);
 
-#ifdef HAVE_ROUTE_METRIC
+#if HAVE_ROUTE_METRIC
        /* If we have an unreachable router, we really do need to remove the
         * route to it beause it could be a lower metric than a reachable
         * router. Of course, we should at least have some routers if all