diff options
author | Darren Tucker <dtucker@dtucker.net> | 2022-11-02 00:51:48 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2022-11-02 00:51:48 +0100 |
commit | 5ebe18cab6be3247b44c807ac145164010465b82 (patch) | |
tree | 4e4d46586fa7892f84c84f8a14c8e426eb2aee5a /configure.ac | |
parent | upstream: Use variable for diff options (diff) | |
download | openssh-5ebe18cab6be3247b44c807ac145164010465b82.tar.xz openssh-5ebe18cab6be3247b44c807ac145164010465b82.zip |
Check for sockaddr_in.sin_len.
If found, set SOCK_HAS_LEN which is used in addr.c. Should fix keyscan
tests on platforms with this (eg old NetBSD).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c591a0413..1e77ecfc3 100644 --- a/configure.ac +++ b/configure.ac @@ -4325,6 +4325,16 @@ AC_CHECK_MEMBER([struct __res_state.retrans], [], [AC_DEFINE([__res_state], [sta #include <resolv.h> ]]) +AC_CHECK_MEMBER([struct sockaddr_in.sin_len], + [AC_DEFINE([SOCK_HAS_LEN], [1], [sockaddr_in has sin_len])], + [], + [AC_LANG_SOURCE([[ +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> + ]])] +) + AC_CACHE_CHECK([for ss_family field in struct sockaddr_storage], ac_cv_have_ss_family_in_struct_ss, [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |