]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If compile if IPV6_MANAGETEMPADDR is unset on Linux.
authorRoy Marples <roy@marples.name>
Sun, 15 Mar 2015 16:03:52 +0000 (16:03 +0000)
committerRoy Marples <roy@marples.name>
Sun, 15 Mar 2015 16:03:52 +0000 (16:03 +0000)
Thanks to Gabriele.

if-linux.c

index f5ea84c3ea8ee5c48bddf44787e94db6de4a0ce7..b927fe00b2d20e085493cc51bb7b29f614134568 100644 (file)
@@ -1756,6 +1756,7 @@ if_checkipv6(struct dhcpcd_ctx *ctx, const struct interface *ifp, int own)
        return ra;
 }
 
+#ifdef IPV6_MANAGETEMPADDR
 int
 ip6_use_tempaddr(const char *ifname)
 {
@@ -1795,4 +1796,5 @@ ip6_temp_valid_lifetime(const char *ifname)
        val = check_proc_int(path);
        return val < 0 ? TEMP_VALID_LIFETIME : val;
 }
-#endif
+#endif /* IPV6_MANAGETEMPADDR */
+#endif /* INET6 */