[package] fix snmp transports configuration with IPv6
[openwrt/svn-archive/archive.git] / libs / net-snmp / Makefile
index c960c35..14b271a 100644 (file)
@@ -141,7 +141,11 @@ SNMP_MIB_MODULES_EXCLUDED = \
        udp-mib \
        utilities \
 
-SNMP_TRANSPORTS_INCLUDED = Callback UDP UDPIPv6
+SNMP_TRANSPORTS_INCLUDED = Callback UDP 
+
+ifeq ($(CONFIG_IPV6),y)
+SNMP_TRANSPORTS_INCLUDED+= UDPIPv6
+endif
 
 SNMP_TRANSPORTS_EXCLUDED = TCP TCPIPv6 Unix