From 5f68435a079dc7ce633e1da22f363e4e715d66f6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 22 Oct 2016 01:56:48 -0700 Subject: Fix the #defines for the presence of structure names. AC_CHECK_MEMBER() and AC_CHECK_MEMBERS() use a standard name for the {structurename} being the name of the structure type, complete with "struct" if a typedef wasn't used, and with all letters mapped to upper case, and with {membername} being the name of the structure member, with all letters mapped to upper case. check_struct_has_member() lets you choose the name; choose the same name that the autoconf macros use, and fix the code to check for them. Change-Id: Ifb3cf65e7e94907ad0a2f8aacca0c21a531f0c5b Reviewed-on: https://code.wireshark.org/review/18382 Petri-Dish: Guy Harris Reviewed-by: Guy Harris --- caputils/capture-pcap-util-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'caputils') diff --git a/caputils/capture-pcap-util-unix.c b/caputils/capture-pcap-util-unix.c index 66a54c8591..a11eefa29c 100644 --- a/caputils/capture-pcap-util-unix.c +++ b/caputils/capture-pcap-util-unix.c @@ -278,7 +278,7 @@ get_interface_list(int *err, char **err_str) } next: -#ifdef HAVE_SOCKADDR_SA_LEN +#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN ifr = (struct ifreq *) ((char *) ifr + (ifr->ifr_addr.sa_len > sizeof(ifr->ifr_addr) ? ifr->ifr_addr.sa_len : sizeof(ifr->ifr_addr)) + -- cgit v1.2.1