blob: 4f7bf23425050f11b9e285830b66e5e3220e9018 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ac,v 1.2 2007/01/06 04:21:24 schmonz Exp $
--- librioutil/driver_file.c.orig 2006-08-07 11:47:28.000000000 -0400
+++ librioutil/driver_file.c
@@ -32,7 +32,7 @@
char driver_method[] = "device file";
/* Duplicated from rio_usb.h */
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#define RIO_RECV_COMMAND _IOWR('U', 201, struct RioCommand)
#else
#define RIO_RECV_COMMAND 0x2
@@ -42,7 +42,7 @@ char driver_method[] = "device file";
#ifdef linux
#include <linux/usb.h>
#define RIODEVICE "/dev/usb/rio"
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
#define RIODEVICE "/dev/urio"
#elif defined(__NetBSD__)
#define RIODEVICE "/dev/urio"
|