summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-09 22:29:46 +0100
committerRoy Marples <roy@marples.name>2020-04-09 22:29:46 +0100
commitd139699e3a48e3971dc70f3374dcc8d20d34fc72 (patch)
treecba7f1abec34883fe33367ed1cc496da7a7501d9 /src
parente75663048b9dd9296ed5e457d0ae37f30bf6ffd1 (diff)
downloaddhcpcd-d139699e3a48e3971dc70f3374dcc8d20d34fc72.tar.xz
linux: Remove warning when HAVE_IN6_ADDR_GEN_MODE_NONE isn't supported
Diffstat (limited to 'src')
-rw-r--r--src/if-linux.c2
1 files changed, 2 insertions, 0 deletions
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)