summaryrefslogtreecommitdiff
path: root/src/usbhid-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usbhid-dump.c')
-rw-r--r--src/usbhid-dump.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usbhid-dump.c b/src/usbhid-dump.c
index d22cc10..0f78a72 100644
--- a/src/usbhid-dump.c
+++ b/src/usbhid-dump.c
@@ -42,6 +42,11 @@
#include <getopt.h>
#include <stdio.h>
+/* Define LIBUSB_CALL for libusb <= 1.0.8 */
+#ifndef LIBUSB_CALL
+#define LIBUSB_CALL
+#endif
+
#define GENERIC_ERROR(_fmt, _args...) \
fprintf(stderr, _fmt "\n", ##_args)
@@ -193,7 +198,7 @@ dump_iface_list_descriptor(const uhd_iface *list)
}
-static void
+static void LIBUSB_CALL
dump_iface_list_stream_cb(struct libusb_transfer *transfer)
{
enum libusb_error err;