pkgsrc/sysutils/apcupsd/patches/patch-am

18 lines
419 B
Text

$NetBSD: patch-am,v 1.3 2007/03/07 20:48:04 joerg Exp $
--- src/drivers/usb/bsd/hidutils.c.orig 2007-03-07 19:31:41.000000000 +0000
+++ src/drivers/usb/bsd/hidutils.c
@@ -26,8 +26,13 @@
#include "apc.h"
#include "hidutils.h"
+#ifdef __DragonFly__
+#include <bus/usb/usb.h>
+#include <bus/usb/usbhid.h>
+#else
#include <dev/usb/usb.h>
#include <dev/usb/usbhid.h>
+#endif
#define MAX_SANE_DESCRIPTOR_LEN 4096