projects
/
madwifi
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't redefine netdev_for_each_mc_addr()
[madwifi/.git]
/
include
/
compat.h
diff --git
a/include/compat.h
b/include/compat.h
index 5e6d569ee963623e55eb8596a73f43cf47afca3e..c29f57ab279caf37aa842f94e7bc818a9aaa763a 100644
(file)
--- a/
include/compat.h
+++ b/
include/compat.h
@@
-78,8
+78,10
@@
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)
+#ifndef netdev_for_each_mc_addr
#define netdev_for_each_mc_addr(mclist, dev) \
#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)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)