diff --git a/src/core/ipv6/mld6.c b/src/core/ipv6/mld6.c index 97132273..9db25bab 100644 --- a/src/core/ipv6/mld6.c +++ b/src/core/ipv6/mld6.c @@ -44,7 +44,7 @@ #include "lwip/opt.h" -#if LWIP_IPV6 /* don't build if not configured for use in lwipopts.h */ +#if LWIP_IPV6 && LWIP_IPV6_MLD /* don't build if not configured for use in lwipopts.h */ #include "lwip/mld6.h" #include "lwip/icmp6.h"