]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: Remove warning when HAVE_IN6_ADDR_GEN_MODE_NONE isn't supported
authorRoy Marples <roy@marples.name>
Thu, 9 Apr 2020 21:29:46 +0000 (22:29 +0100)
committerRoy Marples <roy@marples.name>
Thu, 9 Apr 2020 21:29:46 +0000 (22:29 +0100)
src/if-linux.c

index d139af43483027c1e99a9d3142c73259f73dd812..9cc6c52758dd7ed0be411df1f6858c1d6887a9fc 100644 (file)
@@ -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)