aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-08-08 16:15:15 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-08-08 16:15:15 +0000
commit1c396b2a99f1f28206372ea08c595fb1b490de53 (patch)
tree59bcd964e35310578ad7224d98f4a5fc32d00e83 /print
parentebbda0d0c31a3130446498cc92379889ff670526 (diff)
downloadports-1c396b2a99f1f28206372ea08c595fb1b490de53.tar.gz
ports-1c396b2a99f1f28206372ea08c595fb1b490de53.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/cups-base/files/patch-backend-usb.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/print/cups-base/files/patch-backend-usb.c b/print/cups-base/files/patch-backend-usb.c
new file mode 100644
index 000000000000..2acdfa389eeb
--- /dev/null
+++ b/print/cups-base/files/patch-backend-usb.c
@@ -0,0 +1,22 @@
+--- backend/usb.c.orig Thu May 16 09:44:50 2002
++++ backend/usb.c Thu Aug 8 11:37:20 2002
+@@ -433,18 +433,7 @@
+ #elif defined(__sun)
+ #elif defined(__hpux)
+ #elif defined(__osf)
+-#elif defined(__FreeBSD__)
+- int i; /* Looping var */
+- char device[255]; /* Device filename */
+-
+-
+- for (i = 0; i < 3; i ++)
+- {
+- sprintf(device, "/dev/unlpt%d", i);
+- if (!access(device, 0))
+- printf("direct usb:%s \"Unknown\" \"USB Printer #%d\"\n", device, i + 1);
+- }
+-#elif defined(__NetBSD__) || defined(__OpenBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+ int i; /* Looping var */
+ char device[255]; /* Device filename */
+