diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-10-15 22:15:37 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-10-15 22:16:01 -0700 |
commit | 88d1467627bbe0fbe2e52098aa099ef0319ac713 (patch) | |
tree | a2e1960d080618f4930d14e7cda22f69d02db908 | |
parent | 727d949ae4b98deb5704ca34359a5b989a2151cf (diff) | |
download | tcpdump-88d1467627bbe0fbe2e52098aa099ef0319ac713.tar.gz |
Get rid of an unnecessary test.
We don't care whether struct sockaddr has an sa_len field or not.
-rw-r--r-- | aclocal.m4 | 25 | ||||
-rw-r--r-- | config.h.in | 3 | ||||
-rwxr-xr-x | configure | 34 | ||||
-rw-r--r-- | configure.in | 2 |
4 files changed, 0 insertions, 64 deletions
@@ -768,31 +768,6 @@ AC_DEFUN(AC_LBL_UNION_WAIT, fi]) dnl -dnl Checks to see if the sockaddr struct has the 4.4 BSD sa_len member -dnl -dnl usage: -dnl -dnl AC_LBL_SOCKADDR_SA_LEN -dnl -dnl results: -dnl -dnl HAVE_SOCKADDR_SA_LEN (defined) -dnl -AC_DEFUN(AC_LBL_SOCKADDR_SA_LEN, - [AC_MSG_CHECKING(if sockaddr struct has the sa_len member) - AC_CACHE_VAL(ac_cv_lbl_sockaddr_has_sa_len, - AC_TRY_COMPILE([ -# include <sys/types.h> -# include <sys/socket.h>], - [u_int i = sizeof(((struct sockaddr *)0)->sa_len)], - ac_cv_lbl_sockaddr_has_sa_len=yes, - ac_cv_lbl_sockaddr_has_sa_len=no)) - AC_MSG_RESULT($ac_cv_lbl_sockaddr_has_sa_len) - if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then - AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[if struct sockaddr has the sa_len member]) - fi]) - -dnl dnl Checks to see if -R is used dnl dnl usage: diff --git a/config.h.in b/config.h.in index 9ccae642..558ab41f 100644 --- a/config.h.in +++ b/config.h.in @@ -196,9 +196,6 @@ /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF -/* if struct sockaddr has the sa_len member */ -#undef HAVE_SOCKADDR_SA_LEN - /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H @@ -7411,40 +7411,6 @@ $as_echo "$as_me: WARNING: can't find $name" >&2;} fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr struct has the sa_len member" >&5 -$as_echo_n "checking if sockaddr struct has the sa_len member... " >&6; } - if ${ac_cv_lbl_sockaddr_has_sa_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -# include <sys/types.h> -# include <sys/socket.h> -int -main () -{ -u_int i = sizeof(((struct sockaddr *)0)->sa_len) - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_lbl_sockaddr_has_sa_len=yes -else - ac_cv_lbl_sockaddr_has_sa_len=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5 -$as_echo "$ac_cv_lbl_sockaddr_has_sa_len" >&6; } - if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then - -$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h - - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned accesses fail" >&5 $as_echo_n "checking if unaligned accesses fail... " >&6; } if ${ac_cv_lbl_unaligned_fail+:} false; then : diff --git a/configure.in b/configure.in index 19eb7eb1..f8a78d26 100644 --- a/configure.in +++ b/configure.in @@ -817,8 +817,6 @@ AC_CHECK_TOOL([AR], [ar]) AC_LBL_DEVEL(V_CCOPT) -AC_LBL_SOCKADDR_SA_LEN - AC_LBL_UNALIGNED_ACCESS # Check for OpenSSL/libressl libcrypto |