diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-20 17:00:52 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-20 17:00:52 -0800 |
commit | c178553bf68d55657e76a931bb19648f01546522 (patch) | |
tree | 5ffbf0f58f13654a244f90086ad1109c92c9f8d8 /pcap-usb-linux.c | |
parent | 6d483265fc3e5448ea5c3259eca91428f2a239ff (diff) | |
download | libpcap-c178553bf68d55657e76a931bb19648f01546522.tar.gz |
Use AC_CHECK_TYPES and AC_CHECK_MEMBERS.
Rather than rolling our own autoconf macros to test for the existence of
data types and structure members, use AC_CHECK_TYPES and
AC_CHECK_MEMBERS.
That cleans the configure script code up a bit, and makes it a bit more
like the CMakeLists.txt file.
Diffstat (limited to 'pcap-usb-linux.c')
-rw-r--r-- | pcap-usb-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-usb-linux.c b/pcap-usb-linux.c index 44e426c2..dbd9d017 100644 --- a/pcap-usb-linux.c +++ b/pcap-usb-linux.c @@ -424,7 +424,7 @@ probe_devices(int bus) * Sigh. Different kernels have different member names * for this structure. */ -#ifdef HAVE_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE +#ifdef HAVE_STRUCT_USBDEVFS_CTRLTRANSFER_BREQUESTTYPE ctrl.bRequestType = USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_DEVICE; ctrl.bRequest = USB_REQ_GET_DESCRIPTOR; ctrl.wValue = USB_DT_DEVICE << 8; |