aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-usb-linux.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-11-25 13:49:16 -0800
committerGuy Harris <guy@alum.mit.edu>2010-11-25 13:49:16 -0800
commit0920898be2ede72baafa2a02e77ea223ecbe4f9a (patch)
tree65bc8a705466607d41015b5ffd052ce7327e2f65 /pcap-usb-linux.c
parentcbf0ba1e349271898225e77628c16cb04457c1b9 (diff)
Include <linux/compiler.h> before including <linux/usbdevice_fs.h>.
Some versions of the Linux kernel require that.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r--pcap-usb-linux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c
index daaa900..61695b6 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