Package: linux-2.6
Version: 2.6.18.dfsg.1-24etch2
Followup-For: Bug #541403


Linux 2.6.18 lacks kernel_sendpage, used by official patch.
Here is a substitute.

--- net/socket.c.orig   2009-08-14 16:51:19.000000000 +0200
+++ net/socket.c        2009-08-14 16:52:20.000000000 +0200
@@ -698,7 +698,10 @@
        if (more)
                flags |= MSG_MORE;
 
-       return sock->ops->sendpage(sock, page, offset, size, flags);
+       if (sock->ops->sendpage)
+               return sock->ops->sendpage(sock, page, offset, size, flags);
+       
+       return sock_no_sendpage(sock, page, offset, size, flags);
 }
 
 static struct sock_iocb *alloc_sock_iocb(struct kiocb *iocb,


-- System Information:
Debian Release: 4.0
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-686
Locale: LANG=en_US, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to