summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch')
-rw-r--r--net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch b/net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch
deleted file mode 100644
index efed69327251..000000000000
--- a/net-dialup/globespan-adsl/files/globespan-adsl-0.12-pagesize.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-diff -Nru eciadsl-usermode-0.12.orig/pusb-linux.c eciadsl-usermode-0.12/pusb-linux.c
---- eciadsl-usermode-0.12.orig/pusb-linux.c 2007-08-25 08:41:28.000000000 +0300
-+++ eciadsl-usermode-0.12/pusb-linux.c 2007-08-25 08:42:27.000000000 +0300
-@@ -29,7 +29,6 @@
- #include <string.h>
-
- #include "pusb-linux.h"
--#include <asm/page.h>
-
- #include "pusb.h"
-
-@@ -430,16 +429,20 @@
- {
- static struct usbdevfs_bulktransfer bulk;
- static int ret;
-+ static long pagesize = 0;
- int received = 0;
-
-+ if (pagesize == 0)
-+ pagesize = sysconf(_SC_PAGESIZE);
-+
- do
- {
- bulk.ep = ep;
-
- bulk.len = size;
-
-- if (size > PAGE_SIZE)
-- bulk.len = PAGE_SIZE;
-+ if (size > pagesize)
-+ bulk.len = pagesize;
-
- bulk.timeout = timeout;
- bulk.data = buf;