summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2001-08-07 15:29:07 -0700
committerTim Rice <tim@multitalents.net>2001-08-07 15:29:07 -0700
commite991e3cf221c9f898b7ec0c5e7492bb1202cefc4 (patch)
treebe55c57e75269fb299f9cbcf32a5c0ab58cfd2b4 /sshconnect.c
parent6db66ff3877f52110cda3104e798d91091af7200 (diff)
- (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.c4
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)
{