$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 #include +#if defined(__DragonFly__) +#include +#else #include +#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 */