-
Notifications
You must be signed in to change notification settings - Fork 4
/
devel-libusb1.diff
39 lines (38 loc) · 1.32 KB
/
devel-libusb1.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# HG changeset patch
# Parent c1dfabc9f6be6a893cb79c81b1cf7d4554ef5e71
diff -r c1dfabc9f6be devel/libusb1/distinfo
--- a/devel/libusb1/distinfo Sat Mar 14 00:06:29 2015 -0400
+++ b/devel/libusb1/distinfo Sat Mar 14 00:06:36 2015 -0400
@@ -3,6 +3,7 @@
SHA1 (libusb-1.0.9.tar.bz2) = 025582ff2f6216e2dbc2610ae16b2e073e1b3346
RMD160 (libusb-1.0.9.tar.bz2) = 5410570f8ce31783044eb04aebaae7ade3b21a61
Size (libusb-1.0.9.tar.bz2) = 421971 bytes
+SHA1 (patch-timespec) = 87f7c7eb866b7b2e5a80997e2b472b527432a350
SHA1 (patch-configure) = 16945e970e356009d1022d9832ef3ee532435422
SHA1 (patch-configure.ac) = 3d8234d368409a23da0f346822bea276c6081e8b
SHA1 (patch-libusb_os_openbsd__usb.c) = be31799029f8e2acf7abb6be566a51c78026479d
diff -r c1dfabc9f6be devel/libusb1/patches/patch-timespec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libusb1/patches/patch-timespec Sat Mar 14 00:06:36 2015 -0400
@@ -0,0 +1,20 @@
+--- libusb/io.c
++++ libusb/io.c
+@@ -36,6 +36,17 @@
+
+ #include "libusbi.h"
+
++/*
++ * Android and musl, at least, don't provide this macro
++ */
++#ifndef TIMESPEC_TO_TIMEVAL
++#define TIMESPEC_TO_TIMEVAL(tv, ts) \
++do { \
++ (tv)->tv_sec = (ts)->tv_sec; \
++ (tv)->tv_usec = (ts)->tv_nsec / 1000; \
++} while (0)
++#endif
++
+ /**
+ * \page io Synchronous and asynchronous device I/O
+ *
\ No newline at end of file