diff options
author | nia <nia@netbsd.org> | 2020-04-03 22:15:02 +0100 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-04-09 12:39:16 -0700 |
commit | 5c44ca955b3d7c41e6717514dc508f42faa2237b (patch) | |
tree | 2436281e0bf3304addb4495037a4c32c0dfe0190 | |
parent | 60c8395eecdf01c95c8b6f4809e2f543d433f117 (diff) | |
download | libusb-5c44ca955b3d7c41e6717514dc508f42faa2237b.tar.gz |
netbsd: Recognize device timeouts.
Closes #710
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
-rw-r--r-- | libusb/os/netbsd_usb.c | 3 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 4 insertions, 1 deletions
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 @@ _errno_to_libusb(int err) 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 |