summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <drac@gentoo.org>2007-11-24 22:43:39 +0000
committerSamuli Suominen <drac@gentoo.org>2007-11-24 22:43:39 +0000
commitf0b2f3bb22a0a044a73b0b40f4d11a849a8e32ab (patch)
tree19e922eaf846b0a3c93dae0e9a680f55f262d3ec /net-dialup/globespan-adsl/files
parentMarking libgtop-2.20.0 ppc stable for bug 199740 (diff)
downloadgentoo-2-f0b2f3bb22a0a044a73b0b40f4d11a849a8e32ab.tar.gz
gentoo-2-f0b2f3bb22a0a044a73b0b40f4d11a849a8e32ab.tar.bz2
gentoo-2-f0b2f3bb22a0a044a73b0b40f4d11a849a8e32ab.zip
Mark 0.12 explicitely -amd64 wrt #200194 and move stable keyword to 0.11-r1 with a backported patch, thanks to Jakub Moc and Sandro Bonazzola.
(Portage version: 2.1.4_rc3)
Diffstat (limited to 'net-dialup/globespan-adsl/files')
-rw-r--r--net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch31
1 files changed, 31 insertions, 0 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
new file mode 100644
index 000000000000..dcb2141197c4
--- /dev/null
+++ b/net-dialup/globespan-adsl/files/globespan-adsl-0.11-pagesize.patch
@@ -0,0 +1,31 @@
+--- 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;
+