Package: freebsd-libs / 10.3~svn296373-10

12_usb.diff Patch series | download
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
--- a/lib/libusb/Makefile
+++ b/lib/libusb/Makefile
@@ -21,6 +21,7 @@
 
 DPADD=		${LIBPTHREAD}
 LDADD=		${PTHREAD_LIBS}
+LDADD+=		-lrt -lbsd
 
 MLINKS+=	libusb.3 usb.3
 
--- a/lib/libusb/libusb.h
+++ b/lib/libusb/libusb.h
@@ -31,6 +31,7 @@
 #include <stdint.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <stdint.h>
 #endif
 
 #define	LIBUSB_CALL
--- a/lib/libusb/libusb20_desc.h
+++ b/lib/libusb/libusb20_desc.h
@@ -49,6 +49,8 @@
 #include <stdint.h>
 #endif
 
+#include <stdint.h>
+
 #ifdef __cplusplus
 extern	"C" {
 #endif