Whamcloud - gitweb
LU-1468 o2iblnd: Support OFED-3.5 for o2ib
[fs/lustre-release.git] / libcfs / include / libcfs / linux / linux-tcpip.h
index 47cc539..b358773 100644 (file)
@@ -84,10 +84,12 @@ libcfs_sock_wmem_queued(struct socket *sock)
 }
 
 #ifndef HAVE_SK_SLEEP
-static inline wait_queue_head_t *sk_sleep(struct sock *sk)
+static inline wait_queue_head_t *cfs_sk_sleep(struct sock *sk)
 {
         return sk->sk_sleep;
 }
+#else
+#define cfs_sk_sleep(sk)       sk_sleep(sk)
 #endif
 
 #ifdef HAVE_INIT_NET