Don't redefine netdev_for_each_mc_addr()
[madwifi/.git] / include / compat.h
index 5e6d569ee963623e55eb8596a73f43cf47afca3e..c29f57ab279caf37aa842f94e7bc818a9aaa763a 100644 (file)
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
+#ifndef netdev_for_each_mc_addr
 #define netdev_for_each_mc_addr(mclist, dev) \
-       for (mclist = dev->mc_list; mclist; mclist = mclist->next)
+       for (mclist = (dev)->mc_list; mclist; mclist = mclist->next)
+#endif
 #endif
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)