mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-13 17:34:56 +00:00
Reported by Jason Hecker:
* usbasp.c (libusb_to_errno): Conditionalize some error codes that apparently are lacking on MinGW. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@982 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
4
usbasp.c
4
usbasp.c
@@ -77,10 +77,14 @@ static int libusb_to_errno(int result)
|
||||
return ENOENT;
|
||||
case LIBUSB_ERROR_BUSY:
|
||||
return EBUSY;
|
||||
#ifdef ETIMEDOUT
|
||||
case LIBUSB_ERROR_TIMEOUT:
|
||||
return ETIMEDOUT;
|
||||
#endif
|
||||
#ifdef EOVERFLOW
|
||||
case LIBUSB_ERROR_OVERFLOW:
|
||||
return EOVERFLOW;
|
||||
#endif
|
||||
case LIBUSB_ERROR_PIPE:
|
||||
return EPIPE;
|
||||
case LIBUSB_ERROR_INTERRUPTED:
|
||||
|
||||
Reference in New Issue
Block a user