add support for older libusb-1.0 found in debian squeeze
authorMichael Gernoth <michael@gernoth.net>
Sun, 28 Jul 2013 21:33:24 +0000 (23:33 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 28 Jul 2013 21:33:24 +0000 (23:33 +0200)
hmcfgusb.c

index 6df2bca..d3bec90 100644 (file)
 #include <sys/time.h>
 #include <libusb-1.0/libusb.h>
 
+/* 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"
 
Impressum, Datenschutz