From: Roy Marples Date: Sun, 15 Mar 2015 16:03:52 +0000 (+0000) Subject: If compile if IPV6_MANAGETEMPADDR is unset on Linux. X-Git-Tag: v6.8.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5e71047e4708ee4dad0af980ace1026dd90c0f;p=thirdparty%2Fdhcpcd.git If compile if IPV6_MANAGETEMPADDR is unset on Linux. Thanks to Gabriele. --- diff --git a/if-linux.c b/if-linux.c index f5ea84c3..b927fe00 100644 --- a/if-linux.c +++ b/if-linux.c @@ -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 */