dect
/
libpcap
Archived
13
0
Fork 0

Include <linux/compiler.h> before including <linux/usbdevice_fs.h>.

Some versions of the Linux kernel require that.
This commit is contained in:
Guy Harris 2010-11-25 13:49:16 -08:00
parent cbf0ba1e34
commit 0920898be2
1 changed files with 5 additions and 0 deletions

View File

@ -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