summaryrefslogtreecommitdiff
path: root/sysutils/usbutil/patches/patch-ab
blob: 95937c5ebea5e406d95d0a1fd135c6964e48250d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.1 2005/12/18 17:31:22 joerg Exp $

--- usbctl.c.orig	2002-02-25 00:50:55.000000000 +0000
+++ usbctl.c
@@ -27,12 +27,18 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
+#include <sys/ioctl.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <err.h>
 #include <errno.h>
+#ifdef __DragonFly__
+#include <bus/usb/usb.h>
+#include <bus/usb/usbhid.h>
+#else
 #include <dev/usb/usb.h>
 #include <dev/usb/usbhid.h>
+#endif
 
 #ifndef USB_STACK_VERSION
 #define ucr_addr addr