netbsd: Recognize device timeouts.
Closes #710
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
diff --git a/libusb/os/netbsd_usb.c b/libusb/os/netbsd_usb.c
index 41f003f..3255cf2 100644
--- a/libusb/os/netbsd_usb.c
+++ b/libusb/os/netbsd_usb.c
@@ -467,6 +467,9 @@
return (LIBUSB_ERROR_NO_DEVICE);
case ENOMEM:
return (LIBUSB_ERROR_NO_MEM);
+ case EWOULDBLOCK:
+ case ETIMEDOUT:
+ return (LIBUSB_ERROR_TIMEOUT);
}
usbi_dbg("error: %s", strerror(err));
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index a3ee32f..d7d9bc1 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11490
+#define LIBUSB_NANO 11491