aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2013-03-13 12:23:14 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2013-03-13 12:23:14 +0000
commit6619413096ca2cd63cdd45b422edaa6921aa39e3 (patch)
tree4cb297d97b46e9075c87640bb84c7ec92616125a /lib/libusb/libusb20.h
parent2ec88e9d1bcc5eabc01e8524c586254d8c012c3b (diff)
downloadsrc-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.h')
-rw-r--r--lib/libusb/libusb20.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libusb/libusb20.h b/lib/libusb/libusb20.h
index 81928b143466..4a57b49710f6 100644
--- a/lib/libusb/libusb20.h
+++ b/lib/libusb/libusb20.h
@@ -29,13 +29,9 @@
#ifndef _LIBUSB20_H_
#define _LIBUSB20_H_
-#include <sys/endian.h>
-#include <sys/time.h>
-#include <sys/types.h>
-
+#ifndef LIBUSB_GLOBAL_INCLUDE_FILE
#include <stdint.h>
-#include <string.h>
-#include <time.h>
+#endif
#ifdef __cplusplus
extern "C" {