From: Roy Marples Date: Thu, 9 Apr 2020 15:36:42 +0000 (+0100) Subject: Fix build on Linux X-Git-Tag: v9.0.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddcc11922e3b54f627fadd29cd6fb2f25b0a1dcb;p=thirdparty%2Fdhcpcd.git Fix build on Linux --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index b8f41e8b..dbbc7ff8 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -781,8 +781,10 @@ dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags, * maybe on a new network. */ ipv6nd_startexpire(ifp); #endif +#ifdef IPV6_MANAGETEMPADDR /* RFC4941 Section 3.5 */ ipv6_regentempaddrs(ifp); +#endif #endif dhcpcd_startinterface(ifp); } diff --git a/src/ipv6.h b/src/ipv6.h index 0330b8e7..d311b374 100644 --- a/src/ipv6.h +++ b/src/ipv6.h @@ -300,9 +300,6 @@ struct ipv6_addr *ipv6_createtempaddr(struct ipv6_addr *, struct ipv6_addr *ipv6_settemptime(struct ipv6_addr *, int); void ipv6_addtempaddrs(struct interface *, const struct timespec *); void ipv6_regentempaddrs(void *); -#else -#define ipv6_gentempifid(a) {} -#define ipv6_settempstale(a) {} #endif int ipv6_start(struct interface *);