From b019cc06cb4fdc01f99a36581fe7b55e2533d663 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 25 Nov 2010 14:06:01 -0800 Subject: Check whether we have . Not all distributions have it in /usr/include; I guess the ones that don't have it have versions of other kernel headers that don't require it. --- pcap-usb-linux.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pcap-usb-linux.c') diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 61695b6..f1b430c 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -62,12 +62,14 @@ static const char rcsid[] _U_ = #include #ifdef HAVE_LINUX_USBDEVICE_FS_H /* - * We assume that any Linux that supports USB sniffing has ; - * we might need it for to define __user. + * We might need to define __user for + * . */ +#ifdef HAVE_LINUX_COMPILER_H #include +#endif /* HAVE_LINUX_COMPILER_H */ #include -#endif +#endif /* HAVE_LINUX_USBDEVICE_FS_H */ #define USB_IFACE "usbmon" #define USB_TEXT_DIR_OLD "/sys/kernel/debug/usbmon" -- cgit v1.2.3