From 37c97e62a5a0ae846b3823005e08ad6b4743764e Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 28 Jul 2013 23:33:24 +0200 Subject: [PATCH] add support for older libusb-1.0 found in debian squeeze --- hmcfgusb.c | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.39.5