aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libpcap/patches/204-usb-bus-path.patch
blob: 0c967a00ba9caebb5d95bf9f3bd14ebc02ab99e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Fix USB bus path; /proc/bus/usb is deprecated.

--- a/pcap-usb-linux.c
+++ b/pcap-usb-linux.c
@@ -73,7 +73,7 @@
 #define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon"
 #define USB_TEXT_DIR "/sys/kernel/debug/usb/usbmon"
 #define SYS_USB_BUS_DIR "/sys/bus/usb/devices"
-#define PROC_USB_BUS_DIR "/proc/bus/usb"
+#define PROC_USB_BUS_DIR "/dev/bus/usb"
 #define USB_LINE_LEN 4096
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN