mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-23 11:45:18 -04:00
23 lines
820 B
Plaintext
23 lines
820 B
Plaintext
$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"
|