e9c91f4956
included by dev/usb/usb.h, which is not the case on DragonFly and FreeBSD.
29 lines
686 B
Text
29 lines
686 B
Text
$NetBSD: patch-aa,v 1.2 2005/12/18 17:31:22 joerg Exp $
|
|
|
|
--- usbgen.c.orig 2002-02-25 00:55:12.000000000 +0000
|
|
+++ usbgen.c
|
|
@@ -27,11 +27,16 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
+#include <sys/ioctl.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <string.h>
|
|
#include <err.h>
|
|
+#ifdef __DragonFly__
|
|
+#include <bus/usb/usb.h>
|
|
+#else
|
|
#include <dev/usb/usb.h>
|
|
+#endif
|
|
|
|
/* Backwards compatibility */
|
|
#ifndef UE_GET_DIR
|
|
@@ -54,6 +59,7 @@
|
|
#define ucd_desc desc
|
|
#define uai_config_index config_index
|
|
#define uai_interface_index interface_index
|
|
+#define uai_alt_no alt_no
|
|
#define udi_product product
|
|
#define udi_vendor vendor
|
|
#define udi_addr addr
|