diff options
Diffstat (limited to 'net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch')
-rw-r--r-- | net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch b/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch deleted file mode 100644 index dcb2141197c4..000000000000 --- a/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- eciadsl-usermode-0.11/pusb-linux.c.orig 2007-11-24 23:05:42.000000000 +0100 -+++ eciadsl-usermode-0.11/pusb-linux.c 2007-11-24 23:12:15.000000000 +0100 -@@ -29,7 +29,6 @@ - #include <string.h> - - #include "pusb-linux.h" --#include <asm/page.h> - - struct pusb_endpoint_t - { -@@ -392,13 +391,18 @@ - { - struct usbdevfs_bulktransfer bulk; - int ret, received = 0; -+ static long pagesize = 0; -+ -+ if (pagesize == 0) -+ pagesize = sysconf(_SC_PAGESIZE); -+ - - do - { - bulk.ep = ep; - bulk.len = size; -- if (bulk.len > PAGE_SIZE) -- bulk.len = PAGE_SIZE; -+ if (size > pagesize) -+ bulk.len = pagesize; - bulk.timeout = timeout; - bulk.data = buf; - |