]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix build on Linux
authorRoy Marples <roy@marples.name>
Thu, 9 Apr 2020 15:36:42 +0000 (16:36 +0100)
committerRoy Marples <roy@marples.name>
Thu, 9 Apr 2020 15:36:42 +0000 (16:36 +0100)
src/dhcpcd.c
src/ipv6.h

index b8f41e8b9b4783cb0c95966ce51553de82054b43..dbbc7ff843ad053caf1dc182754f37ea8a269baf 100644 (file)
@@ -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);
                }
index 0330b8e78856b6fd6468ce1f6af078f12ca7b9ba..d311b374d1db4808722d664c71afbaa784def70a 100644 (file)
@@ -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 *);