summaryrefslogtreecommitdiffstats
path: root/lib/libusbhid/descr_compat.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-02-23 18:36:54 +0000
committerthompsa <thompsa@FreeBSD.org>2009-02-23 18:36:54 +0000
commit67f51fe4b6588da6a22256d85370d621edce59d2 (patch)
treeb2372a733b5fd6eaae1b2ddf567b80210c8317ff /lib/libusbhid/descr_compat.c
parent6b0018e885dd384f1bb0b0572d672fca70457e1d (diff)
downloadFreeBSD-src-67f51fe4b6588da6a22256d85370d621edce59d2.zip
FreeBSD-src-67f51fe4b6588da6a22256d85370d621edce59d2.tar.gz
Build fixups for the new USB stack.
Diffstat (limited to 'lib/libusbhid/descr_compat.c')
-rw-r--r--lib/libusbhid/descr_compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusbhid/descr_compat.c b/lib/libusbhid/descr_compat.c
index 3cbcdbf..a38d8d7 100644
--- a/lib/libusbhid/descr_compat.c
+++ b/lib/libusbhid/descr_compat.c
@@ -28,6 +28,7 @@
* This file contains fallback-compatibility code for the old FreeBSD
* USB stack.
*/
+#ifdef HID_COMPAT7
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -75,3 +76,4 @@ hid_get_report_desc_compat7(int fd)
return (hid_use_report_desc(rep.ucrd_data, (unsigned int)rep.ucrd_size));
}
+#endif /* HID_COMPAT7 */
OpenPOWER on IntegriCloud