diff options
author | Tim Rice <tim@multitalents.net> | 2001-08-07 15:29:07 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2001-08-07 15:29:07 -0700 |
commit | e991e3cf221c9f898b7ec0c5e7492bb1202cefc4 (patch) | |
tree | be55c57e75269fb299f9cbcf32a5c0ab58cfd2b4 /sshconnect.c | |
parent | 6db66ff3877f52110cda3104e798d91091af7200 (diff) | |
download | openssh-git-e991e3cf221c9f898b7ec0c5e7492bb1202cefc4.tar.gz |
- (tim) [configure.in sshconnect.c openbsd-compat/Makefile.in
openbsd-compat/openbsd-compat.h ] Add inet_ntop.c inet_ntop.h back
in. Needed for sshconnect.c
[sshconnect.c] fix INET6_ADDRSTRLEN for non IPv6 machines
[configure.in] make tests with missing libraries fail
patch by Wendy Palm <wendyp@cray.com>
Added openbsd-compat/bsd-cray.h. Selective patches from
William L. Jones <jones@mail.utexas.edu>
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sshconnect.c b/sshconnect.c index 27b33871..0ae100fe 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -41,6 +41,10 @@ extern char *__progname; /* AF_UNSPEC or AF_INET or AF_INET6 */ extern int IPv4or6; +#ifndef INET6_ADDRSTRLEN /* for non IPv6 machines */ +#define INET6_ADDRSTRLEN 46 +#endif + static const char * sockaddr_ntop(struct sockaddr *sa) { |