summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-02 19:54:19 +0000
committerRoy Marples <roy@marples.name>2020-04-02 19:54:19 +0000
commit12ddbee51f0e1cf4372146f8d42ea404dd07dba3 (patch)
treef3d62e423c434165b27535c296b805836ae23986 /src/dhcpcd.c
parent1ce309516d99c379a1ec278dbe1796308be80f44 (diff)
downloaddhcpcd-12ddbee51f0e1cf4372146f8d42ea404dd07dba3.tar.xz
Fix build without INET or INET6
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 057a1fd9..9208f37c 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -2169,7 +2169,7 @@ printpidfile:
}
#endif
-#ifdef BSD
+#if defined(BSD) && defined(INET6)
/* Disable the kernel RTADV sysctl as early as possible. */
if (ctx.options & DHCPCD_IPV6 && ctx.options & DHCPCD_IPV6RS)
if_disable_rtadv();