6a10c314f4
Add DragonFly support.
29 lines
886 B
Text
29 lines
886 B
Text
$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 */
|