From: Roy Marples Date: Thu, 9 Apr 2020 21:29:46 +0000 (+0100) Subject: linux: Remove warning when HAVE_IN6_ADDR_GEN_MODE_NONE isn't supported X-Git-Tag: v9.0.1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=050c5c2ade6b20bda8a1462201fd3fbebbe758ee;p=thirdparty%2Fdhcpcd.git linux: Remove warning when HAVE_IN6_ADDR_GEN_MODE_NONE isn't supported --- diff --git a/src/if-linux.c b/src/if-linux.c index d139af43..9cc6c527 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -1907,6 +1907,7 @@ struct nlml char buffer[32]; }; +#ifdef HAVE_IN6_ADDR_GEN_MODE_NONE static struct rtattr * add_attr_nest(struct nlmsghdr *n, unsigned short maxlen, unsigned short type) { @@ -1923,6 +1924,7 @@ add_attr_nest_end(struct nlmsghdr *n, struct rtattr *nest) nest->rta_len = (unsigned short)((char *)NLMSG_TAIL(n) - (char *)nest); } +#endif static int if_disable_autolinklocal(struct dhcpcd_ctx *ctx, unsigned int ifindex)