From: Michael Gernoth Date: Sun, 28 Jul 2013 21:33:24 +0000 (+0200) Subject: add support for older libusb-1.0 found in debian squeeze X-Git-Tag: v0.100~54 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/37c97e62a5a0ae846b3823005e08ad6b4743764e add support for older libusb-1.0 found in debian squeeze --- diff --git a/hmcfgusb.c b/hmcfgusb.c index 6df2bca..d3bec90 100644 --- a/hmcfgusb.c +++ b/hmcfgusb.c @@ -32,6 +32,12 @@ #include #include +/* Workaround for old libusb-1.0 */ +#ifndef LIBUSB_CALL +#define LIBUSB_CALL +#define libusb_handle_events_timeout_completed(ctx, tv, x) libusb_handle_events_timeout(ctx, tv) +#endif + #include "hexdump.h" #include "hmcfgusb.h"