Fix compile when IPv4 is disabled

This commit is contained in:
Dirk Ziegelmeier
2016-12-05 22:01:58 +01:00
parent a6bc422729
commit 1687721600
7 changed files with 14 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ snmp_netconn_thread(void *arg)
LWIP_UNUSED_ARG(arg);
/* Bind to SNMP port with default IP address */
#if LWIP_IPV6
#if LWIP_IPV6
conn = netconn_new(NETCONN_UDP_IPV6);
netconn_bind(conn, IP6_ADDR_ANY, SNMP_IN_PORT);
#else /* LWIP_IPV6 */