diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-11-25 13:49:16 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-11-25 13:49:54 -0800 |
commit | caf2bc3524e2d8a6487d64f2830276fe7fae6bcc (patch) | |
tree | 2b6879f85489efcce68f566eea4ba5b80356d67a | |
parent | 4f51b96b5bf16038ec2cb2a6d5de39e11c321c11 (diff) | |
download | libpcap-caf2bc3524e2d8a6487d64f2830276fe7fae6bcc.tar.gz |
Include <linux/compiler.h> before including <linux/usbdevice_fs.h>.
Some versions of the Linux kernel require that.
-rw-r--r-- | pcap-usb-linux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index daaa9007..61695b6d 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -61,6 +61,11 @@ static const char rcsid[] _U_ = #include <sys/ioctl.h> #include <sys/mman.h> #ifdef HAVE_LINUX_USBDEVICE_FS_H +/* + * We assume that any Linux that supports USB sniffing has <linux/compiler.h>; + * we might need it for <linux/usbdevice_fs.h> to define __user. + */ +#include <linux/compiler.h> #include <linux/usbdevice_fs.h> #endif |