pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/usbutil Include correct headers on DragonFly....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/84f0dc6de58f
branches:  trunk
changeset: 504656:84f0dc6de58f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 18 17:31:22 2005 +0000

description:
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.

diffstat:

 sysutils/usbutil/distinfo         |   7 +++++--
 sysutils/usbutil/patches/patch-aa |  25 +++++++++++++++++++++----
 sysutils/usbutil/patches/patch-ab |  23 +++++++++++++++++++++++
 sysutils/usbutil/patches/patch-ac |  21 +++++++++++++++++++++
 sysutils/usbutil/patches/patch-ad |  20 ++++++++++++++++++++
 5 files changed, 90 insertions(+), 6 deletions(-)

diffs (124 lines):

diff -r 2fab177d70a3 -r 84f0dc6de58f sysutils/usbutil/distinfo
--- a/sysutils/usbutil/distinfo Sun Dec 18 15:52:19 2005 +0000
+++ b/sysutils/usbutil/distinfo Sun Dec 18 17:31:22 2005 +0000
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 13:40:58 agc Exp $
+$NetBSD: distinfo,v 1.6 2005/12/18 17:31:22 joerg Exp $
 
 SHA1 (usbutil-0.5.tar.gz) = 4c9abc6f370ab561bd2748b1792802d1e959c599
 RMD160 (usbutil-0.5.tar.gz) = 48c6bedeed8daf50a760feedef3575db021066f8
 Size (usbutil-0.5.tar.gz) = 11508 bytes
-SHA1 (patch-aa) = b41e7d55d1951ceb62b21cac84c89ff68bd5b79f
+SHA1 (patch-aa) = 8db548f99befd76839b8b31caa2de0861c6d708b
+SHA1 (patch-ab) = f3bf1820290e966065b185b3b55ce7ec4f127d59
+SHA1 (patch-ac) = 0c1c7e67c84c1a6db1ad0144803977bee7c61ceb
+SHA1 (patch-ad) = bf7ba74ab56b2ae8560c3da73cbd53134a2bf2b8
diff -r 2fab177d70a3 -r 84f0dc6de58f sysutils/usbutil/patches/patch-aa
--- a/sysutils/usbutil/patches/patch-aa Sun Dec 18 15:52:19 2005 +0000
+++ b/sysutils/usbutil/patches/patch-aa Sun Dec 18 17:31:22 2005 +0000
@@ -1,8 +1,25 @@
-$NetBSD: patch-aa,v 1.1 2002/03/07 07:49:49 jmc Exp $
+$NetBSD: patch-aa,v 1.2 2005/12/18 17:31:22 joerg Exp $
 
---- usbgen.c.orig      Thu Mar  7 07:46:26 2002
-+++ usbgen.c   Thu Mar  7 07:48:00 2002
-@@ -54,6 +54,7 @@
+--- 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
diff -r 2fab177d70a3 -r 84f0dc6de58f sysutils/usbutil/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbutil/patches/patch-ab Sun Dec 18 17:31:22 2005 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1 2005/12/18 17:31:22 joerg Exp $
+
+--- usbctl.c.orig      2002-02-25 00:50:55.000000000 +0000
++++ usbctl.c
+@@ -27,12 +27,18 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
++#include <sys/ioctl.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <err.h>
+ #include <errno.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
+ 
+ #ifndef USB_STACK_VERSION
+ #define ucr_addr addr
diff -r 2fab177d70a3 -r 84f0dc6de58f sysutils/usbutil/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbutil/patches/patch-ac Sun Dec 18 17:31:22 2005 +0000
@@ -0,0 +1,21 @@
+$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"
+ 
diff -r 2fab177d70a3 -r 84f0dc6de58f sysutils/usbutil/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/usbutil/patches/patch-ad Sun Dec 18 17:31:22 2005 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ad,v 1.1 2005/12/18 17:31:22 joerg Exp $
+
+--- usbstats.c.orig    2005-12-18 17:23:45.000000000 +0000
++++ usbstats.c
+@@ -26,10 +26,15 @@
+ 
+ #include <stdio.h>
+ #include <sys/types.h>
++#include <sys/ioctl.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <err.h>
++#ifdef __DragonFly__
++#include <bus/usb/usb.h>
++#else
+ #include <dev/usb/usb.h>
++#endif
+ 
+ #ifndef USB_STACK_VERSION
+ #define uds_requests requests



Home | Main Index | Thread Index | Old Index