[libvirt] [PATCH] hostusb: Move USB_DEVFS define to hostusb.h to fix the build

Cole Robinson crobinso at redhat.com
Mon Dec 17 19:42:54 UTC 2012


---

Pushed since it's a trivial build breaker

 src/util/hostusb.c | 1 -
 src/util/hostusb.h | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/util/hostusb.c b/src/util/hostusb.c
index 24f925b..2eb80a0 100644
--- a/src/util/hostusb.c
+++ b/src/util/hostusb.c
@@ -38,7 +38,6 @@
 #include "virterror_internal.h"
 
 #define USB_SYSFS "/sys/bus/usb"
-#define USB_DEVFS "/dev/bus/usb/"
 #define USB_ID_LEN 10 /* "1234 5678" */
 #define USB_ADDR_LEN 8 /* "123:456" */
 
diff --git a/src/util/hostusb.h b/src/util/hostusb.h
index aee1526..ad2476d 100644
--- a/src/util/hostusb.h
+++ b/src/util/hostusb.h
@@ -25,6 +25,8 @@
 
 # include "internal.h"
 
+# define USB_DEVFS "/dev/bus/usb/"
+
 typedef struct _usbDevice usbDevice;
 typedef struct _usbDeviceList usbDeviceList;
 
-- 
1.8.0.2




More information about the libvir-list mailing list