projects
/
hmcfgusb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5b8e7
)
add support for older libusb-1.0 found in debian squeeze
author
Michael Gernoth
<michael@gernoth.net>
Sun, 28 Jul 2013 21:33:24 +0000
(23:33 +0200)
committer
Michael Gernoth
<michael@gernoth.net>
Sun, 28 Jul 2013 21:33:24 +0000
(23:33 +0200)
hmcfgusb.c
patch
|
blob
|
blame
|
history
diff --git
a/hmcfgusb.c
b/hmcfgusb.c
index 6df2bcaa327ed19576ec6fb4667cece08ec568ed..d3bec90c791afc17c395e5b4bfe2ffbe177a57d3 100644
(file)
--- a/
hmcfgusb.c
+++ b/
hmcfgusb.c
@@
-32,6
+32,12
@@
#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