pkgsrc/sysutils/usbutil/patches/patch-ac
joerg e9c91f4956 Include correct headers on DragonFly. Don't depend on sys/ioctl.h being
included by dev/usb/usb.h, which is not the case on DragonFly and FreeBSD.
2005-12-18 17:31:22 +00:00

21 lines
419 B
Text

$NetBSD: patch-ac,v 1.1 2005/12/18 17:31:22 joerg Exp $
--- usbdebug.c.orig 1999-05-18 23:47:45.000000000 +0000
+++ usbdebug.c
@@ -26,11 +26,16 @@
#include <stdio.h>
#include <sys/types.h>
+#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <err.h>
+#ifdef __DragonFly__
+#include <bus/usb/usb.h>
+#else
#include <dev/usb/usb.h>
+#endif
#define USBDEV "/dev/usb0"