openbsd-ports/sysutils/nut/patches/patch-drivers_blazer_usb_c

14 lines
452 B
Plaintext
Raw Normal View History

$OpenBSD: patch-drivers_blazer_usb_c,v 1.3 2012/01/11 16:01:33 sthen Exp $
--- drivers/blazer_usb.c.orig Wed Jan 11 09:35:10 2012
+++ drivers/blazer_usb.c Wed Jan 11 13:21:37 2012
@@ -434,7 +434,9 @@ int blazer_command(const char *cmd, char *buf, size_t
case -ETIMEDOUT: /* Connection timed out */
case -EOVERFLOW: /* Value too large for defined data type */
+#ifdef EPROTO
case -EPROTO: /* Protocol error */
+#endif
default:
break;
}