Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local backends not included on DragonFly #1362

Closed
michaelrsweet opened this issue Dec 19, 2005 · 3 comments
Closed

Local backends not included on DragonFly #1362

michaelrsweet opened this issue Dec 19, 2005 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-feature
CUPS.org User: joerg

The various local backends are currently only available as stubs. Attached patch fixes this.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Reassigned as RFE for 1.2.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

"cups.diff":

--- backend/serial.c.orig 2005-12-19 13:59:56.000000000 +0000
+++ backend/serial.c
@@ -542,7 +542,7 @@ main(int argc, /* I - Number of comman
void
list_devices(void)
{
-#if defined(hpux) || defined(__sgi) || defined(__sun) || defined(__FreeBSD) || defined(OpenBSD)
+#if defined(hpux) || defined(__sgi) || defined(__sun) || defined(__FreeBSD) || defined(OpenBSD) || defined(DragonFly)
static char funky_hex = "0123456789abcdefghijklmnopqrstuvwxyz";
/
Funky hex numbering used for some devices /
#endif /
hpux || __sgi || __sun || __FreeBSD || OpenBSD /
@@ -792,7 +792,7 @@ list_devices(void)
printf("serial serial:%s?baud=38400 "Unknown" "Serial Port #%d"\n",
device, i + 1);
}
-#elif defined(FreeBSD) || defined(OpenBSD)
+#elif defined(FreeBSD) || defined(OpenBSD) || defined(DragonFly)
int i, j; /
Looping vars /
int fd; /
File descriptor /
char device[255]; /
Device filename /
--- backend/parallel.c.orig 2005-12-19 14:00:24.000000000 +0000
+++ backend/parallel.c
@@ -633,7 +633,7 @@ list_devices(void)
printf("direct parallel:%s "Unknown" "Parallel Port #%d"\n", device, i + 1);
}
}
-#elif defined(FreeBSD) || defined(OpenBSD) || defined(NetBSD)
+#elif defined(FreeBSD) || defined(OpenBSD) || defined(NetBSD) || defined(DragonFly)
int i; /
Looping var /
int fd; /
File descriptor /
char device[255]; /
Device filename */
--- backend/usb.c.orig 2005-12-19 13:59:03.000000000 +0000
+++ backend/usb.c
@@ -71,7 +71,7 @@ int print_device(const char *uri, const

#ifdef APPLE

include "usb-darwin.c"

-#elif defined(linux) || defined(__sun) || defined(__FreeBSD) || defined(NetBSD) || defined(OpenBSD)
+#elif defined(linux) || defined(__sun) || defined(__FreeBSD) || defined(NetBSD) || defined(OpenBSD) || defined(DragonFly)

include "usb-unix.c"

#else
/*
--- backend/usb-unix.c.orig 2005-12-19 13:59:35.000000000 +0000
+++ backend/usb-unix.c
@@ -544,7 +544,7 @@ list_devices(void)
}
#elif defined(hpux)
#elif defined(__osf)
-#elif defined(__FreeBSD
) || defined(NetBSD) || defined(OpenBSD)
+#elif defined(FreeBSD) || defined(NetBSD) || defined(OpenBSD) || defined(DragonFly)
int i; /* Looping var /
char device[255]; /
Device filename */

@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant