dect
/
libpcap
Archived
13
0
Fork 0

In the test for a bRequestType member of "struct usbdevfs_ctrltransfer",

include various "standard" headers, to make sure "u_int" gets defined.
This commit is contained in:
Guy Harris 2009-07-13 01:08:32 -07:00
parent 14cfcac8fa
commit 0e9481a12a
2 changed files with 8 additions and 0 deletions

4
configure vendored
View File

@ -10008,6 +10008,10 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
# include <linux/usbdevice_fs.h>
int
main ()

View File

@ -1193,6 +1193,10 @@ linux*)
AC_MSG_CHECKING(if usbdevfs_ctrltransfer struct has bRequestType member)
AC_CACHE_VAL(ac_cv_usbdevfs_ctrltransfer_has_bRequestType,
AC_TRY_COMPILE([
AC_INCLUDES_DEFAULT
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
# include <linux/usbdevice_fs.h>],
[u_int i = sizeof(((struct usbdevfs_ctrltransfer *)0)->bRequestType)],
ac_cv_usbdevfs_ctrltransfer_has_bRequestType=yes,