summaryrefslogtreecommitdiff
path: root/packages/gnuradio
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2008-07-12 12:37:27 +0000
committerPhilip Balister <philip@balister.org>2008-07-12 12:37:27 +0000
commit042dc775c3e44814ec648329a1692b25465ebdeb (patch)
tree62f4adb74f021da160bc525aea45eb86fec8473a /packages/gnuradio
parentfb848073823a54711c3a8a724605041bfe85347c (diff)
gnuradio : Add patch for building with libusb-0.9.
Diffstat (limited to 'packages/gnuradio')
-rw-r--r--packages/gnuradio/gnuradio/gnuradio-libusb.patch25
-rw-r--r--packages/gnuradio/gnuradio_3.1.2.bb1
2 files changed, 26 insertions, 0 deletions
diff --git a/packages/gnuradio/gnuradio/gnuradio-libusb.patch b/packages/gnuradio/gnuradio/gnuradio-libusb.patch
new file mode 100644
index 0000000000..d3be6294b4
--- /dev/null
+++ b/packages/gnuradio/gnuradio/gnuradio-libusb.patch
@@ -0,0 +1,25 @@
+diff -Nurd gnuradio-3.1.2.orig/usrp/host/lib/legacy/usrp_prims.cc gnuradio-3.1.2/usrp/host/lib/legacy/usrp_prims.cc
+--- gnuradio-3.1.2.orig/usrp/host/lib/legacy/usrp_prims.cc 2008-03-05 16:12:38.000000000 -0500
++++ gnuradio-3.1.2/usrp/host/lib/legacy/usrp_prims.cc 2008-07-12 08:04:09.000000000 -0400
+@@ -131,10 +131,18 @@
+ static struct usb_device *
+ dev_handle_to_dev (usb_dev_handle *udh)
+ {
++ struct list_head {
++ struct list_head *prev, *next;
++ };
++
+ struct usb_dev_handle_kludge {
+- int fd;
+- struct usb_bus *bus;
+- struct usb_device *device;
++ /* lock protects claimed_interfaces */
++ pthread_mutex_t lock;
++ unsigned long claimed_interfaces;
++
++ struct list_head list;
++ struct usb_device *device;
++ unsigned char os_priv[0];
+ };
+
+ return ((struct usb_dev_handle_kludge *) udh)->device;
diff --git a/packages/gnuradio/gnuradio_3.1.2.bb b/packages/gnuradio/gnuradio_3.1.2.bb
index f5ced2324c..60ced1c3e6 100644
--- a/packages/gnuradio/gnuradio_3.1.2.bb
+++ b/packages/gnuradio/gnuradio_3.1.2.bb
@@ -5,5 +5,6 @@ PR = "r3"
SRC_URI = "ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-${PV}.tar.gz \
file://no-trellis-doc.patch;patch=1 \
file://gcc43.patch;patch=1;pnum=2 \
+ file://gnuradio-libusb.patch;patch=1 \
"