projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8eca4cf
)
compat: backport sk_sleep
author
Hauke Mehrtens
<hauke@hauke-m.de>
Wed, 28 Apr 2010 21:28:12 +0000
(23:28 +0200)
committer
Luis R. Rodriguez
<lrodriguez@atheros.com>
Thu, 29 Apr 2010 16:31:51 +0000
(09:31 -0700)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/compat-2.6.35.h
patch
|
blob
|
history
diff --git
a/include/linux/compat-2.6.35.h
b/include/linux/compat-2.6.35.h
index 4d3483a3f2da401ab6df3d75bdc9eaebfb50b346..9132ecbc478c66dae8cd6a9f546ebcb4759b9b50 100644
(file)
--- a/
include/linux/compat-2.6.35.h
+++ b/
include/linux/compat-2.6.35.h
@@
-5,6
+5,7
@@
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
#include <linux/etherdevice.h>
+#include <net/sock.h>
#define IW_HANDLER(id, func) \
[IW_IOCTL_IDX(id)] = func
@@
-14,6
+15,11
@@
#define netdev_hw_addr dev_mc_list
+static inline wait_queue_head_t *sk_sleep(struct sock *sk)
+{
+ return sk->sk_sleep;
+}
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */
#endif /* LINUX_26_35_COMPAT_H */