blob: af7d8f62ff8db59ad88ff66bfecac25689fcea0d (
plain)
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
|
$NetBSD: patch-ab,v 1.1 2006/04/22 17:45:05 joerg Exp $
--- cpia2view.c.orig 2006-04-22 17:24:42.000000000 +0000
+++ cpia2view.c
@@ -40,7 +40,11 @@
#include <string.h>
#include <err.h>
+#if defined(__DragonFly__)
+#include <bus/usb/usb.h>
+#else
#include <dev/usb/usb.h>
+#endif
#ifndef USB_SET_PACKETCHKSUM
#define USB_SET_PACKETCHKSUM _IOW ('U', 115, int)
#endif
@@ -142,9 +146,9 @@ int main(int argc, char *argv[])
/* enable checksum to isoc data */
chksum = 1;
if ( (ret = ioctl(usbdev.fd, USB_SET_PACKETCHKSUM, (void *)&chksum)) != 0 ) {
- perror("USB_SET_PACKETCHKSUM");
- ret = 1;
- goto OPENERR;
+ fprintf(stderr, "You should apply following kernel patch to use this package.\n");
+ fprintf(stderr, "\thttp://www2.starcat.ne.jp/~takam/bsd/cpia2-netbsd-sys-1.6.2.diff\n");
+ exit(1);
}
/* set size and start stream */
|