diff options
author | Philip Balister <philip@balister.org> | 2008-07-12 12:37:27 +0000 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2008-07-12 12:37:27 +0000 |
commit | 042dc775c3e44814ec648329a1692b25465ebdeb (patch) | |
tree | 62f4adb74f021da160bc525aea45eb86fec8473a /packages/gnuradio/gnuradio | |
parent | fb848073823a54711c3a8a724605041bfe85347c (diff) | |
download | openembedded-042dc775c3e44814ec648329a1692b25465ebdeb.tar.gz |
gnuradio : Add patch for building with libusb-0.9.
Diffstat (limited to 'packages/gnuradio/gnuradio')
-rw-r--r-- | packages/gnuradio/gnuradio/gnuradio-libusb.patch | 25 |
1 files changed, 25 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; |