aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-usb-linux.c
diff options
context:
space:
mode:
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