On Thu, Jan 09, 2003, Arnaud Launay <asl@...> wrote:
> Small patch enclosed, for compilation of libusb under OpenBSD.
> Open doesn't define EOVERFLOW, so if it does not exist, map it to
> EFBIG, which is the closer and is more "standard" in practical.
You have a small typo, it says EFBIF :)
Anyway, I'd like to keep the return codes consistent across all of the
Would anyone have any objections to just changing all references of
EOVERFLOW to EFBIG?
> Index: usb.c
> RCS file: /cvsroot/libusb/libusb/usb.c,v
> retrieving revision 1.27
> diff -u -r1.27 usb.c
> --- usb.c 8 Dec 2002 00:13:24 -0000 1.27
> +++ usb.c 9 Jan 2003 14:40:05 -0000
> @@ -10,6 +10,10 @@
> #include <stdio.h> /* stderr */
> #include <errno.h>
> +#ifndef EOVERFLOW
> +# define EOVERFLOW EFBIF
> #include "usbi.h"
> int usb_debug = 0;