diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-03-13 12:23:14 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2013-03-13 12:23:14 +0000 |
commit | 6619413096ca2cd63cdd45b422edaa6921aa39e3 (patch) | |
tree | 4cb297d97b46e9075c87640bb84c7ec92616125a /lib/libusb/libusb20.c | |
parent | 2ec88e9d1bcc5eabc01e8524c586254d8c012c3b (diff) | |
download | src-6619413096ca2cd63cdd45b422edaa6921aa39e3.tar.gz src-6619413096ca2cd63cdd45b422edaa6921aa39e3.zip |
- Make the FreeBSD's USB library compile under Linux.
- Fix a compile warning where the return value of a call
to a write() function was ignored.
- Remove redundant include files from userland USB header files.
- Add some now needed include files to various C-files.
Notes
Notes:
svn path=/head/; revision=248236
Diffstat (limited to 'lib/libusb/libusb20.c')
-rw-r--r-- | lib/libusb/libusb20.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c index ce7551131d10..644eda4f5498 100644 --- a/lib/libusb/libusb20.c +++ b/lib/libusb/libusb20.c @@ -24,13 +24,17 @@ * SUCH DAMAGE. */ -#include <sys/queue.h> - +#ifdef LIBUSB_GLOBAL_INCLUDE_FILE +#include LIBUSB_GLOBAL_INCLUDE_FILE +#else #include <ctype.h> #include <poll.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> +#include <sys/queue.h> +#endif #include "libusb20.h" #include "libusb20_desc.h" |