From 089108ddebe7f12e8115e622bd4f7c1792067130 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 28 Apr 2010 23:28:12 +0200 Subject: [PATCH] compat: backport sk_sleep Signed-off-by: Hauke Mehrtens --- include/linux/compat-2.6.35.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/compat-2.6.35.h b/include/linux/compat-2.6.35.h index 4d3483a3f2da..9132ecbc478c 100644 --- 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 +#include #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 */ -- 2.30.2