]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Guard this with #ifdef INET so we can compile INET6 only.
authorRoy Marples <roy@marples.name>
Fri, 31 Mar 2017 18:59:01 +0000 (19:59 +0100)
committerRoy Marples <roy@marples.name>
Fri, 31 Mar 2017 18:59:01 +0000 (19:59 +0100)
src/route.c

index d3a51d69f3dcc80b32fef027178b6e85ac9bebff..13ef0d6dab18a89a979adc3f13b2ca28cc76da84 100644 (file)
@@ -266,7 +266,7 @@ rt_recvrt(int cmd, const struct rt *rt)
                break;
        }
 
-#ifdef HAVE_ROUTE_METRIC
+#if defined(INET) && defined(HAVE_ROUTE_METRIC)
        if (rt->rt_dest.sa_family == AF_INET)
                ipv4ll_recvrt(cmd, rt);
 #endif