do
{
+#ifdef __NetBSD__
+ /*
+ * NetBSD's ulpt driver currently does not support the
+ * back-channel...
+ */
+
+ use_bc = 0;
+
+#else
/*
* Disable backchannel data when printing to Brother, Canon, or
* Minolta USB printers - apparently these printers will return
strcasecmp(hostname, "Canon") &&
strcasecmp(hostname, "Konica Minolta") &&
strcasecmp(hostname, "Minolta");
+#endif /* __NetBSD__ */
if ((device_fd = open_device(uri, &use_bc)) == -1)
{
}
#else
{
- if ((fd = open(uri + 4, O_RDWR | O_EXCL)) < 0)
+ if (use_bc)
+ fd = open(uri + 4, O_RDWR | O_EXCL);
+ else
+ fd = -1;
+
+ if (fd < 0)
{
fd = open(uri + 4, O_WRONLY | O_EXCL);
*use_bc = 0;