$NetBSD: patch-aa,v 1.2 2006/04/22 17:45:05 joerg Exp $ --- cpia2shot.c.orig 2006-04-22 17:24:42.000000000 +0000 +++ cpia2shot.c @@ -36,7 +36,11 @@ #include #include +#if defined(__DragonFly__) +#include +#else #include +#endif #ifndef USB_SET_PACKETCHKSUM #define USB_SET_PACKETCHKSUM _IOW ('U', 115, int) #endif @@ -128,9 +132,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 */