Mercurial > hg > dhcpcd
changeset 5128:d4668acf8d76 draft
Fix build on Linux
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Thu, 09 Apr 2020 16:36:42 +0100 |
| parents | 14b737f09947 |
| children | 8be78957f374 |
| files | src/dhcpcd.c src/ipv6.h |
| diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcpcd.c Thu Apr 09 16:16:37 2020 +0100 +++ b/src/dhcpcd.c Thu Apr 09 16:36:42 2020 +0100 @@ -781,9 +781,11 @@ * maybe on a new network. */ ipv6nd_startexpire(ifp); #endif +#ifdef IPV6_MANAGETEMPADDR /* RFC4941 Section 3.5 */ ipv6_regentempaddrs(ifp); #endif +#endif dhcpcd_startinterface(ifp); } }
--- a/src/ipv6.h Thu Apr 09 16:16:37 2020 +0100 +++ b/src/ipv6.h Thu Apr 09 16:36:42 2020 +0100 @@ -300,9 +300,6 @@ 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 *);
