X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcompat.h;h=c29f57ab279caf37aa842f94e7bc818a9aaa763a;hb=bd86fad8513b639fe491d1df1a2e2ba7391588fc;hp=5e6d569ee963623e55eb8596a73f43cf47afca3e;hpb=58904294644d37f271f95ab9b93206155b602a80;p=madwifi%2F.git diff --git a/include/compat.h b/include/compat.h index 5e6d569..c29f57a 100644 --- a/include/compat.h +++ b/include/compat.h @@ -78,8 +78,10 @@ #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)