diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2002-08-08 16:15:15 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2002-08-08 16:15:15 +0000 |
commit | 1c396b2a99f1f28206372ea08c595fb1b490de53 (patch) | |
tree | 59bcd964e35310578ad7224d98f4a5fc32d00e83 /print | |
parent | ebbda0d0c31a3130446498cc92379889ff670526 (diff) | |
download | ports-1c396b2a99f1f28206372ea08c595fb1b490de53.tar.gz ports-1c396b2a99f1f28206372ea08c595fb1b490de53.zip |
Notes
Diffstat (limited to 'print')
-rw-r--r-- | print/cups-base/files/patch-backend-usb.c | 22 |
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 */ + |