Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp fix INET6-less build (like x_ftp). PR11578
details: https://anonhg.NetBSD.org/src/rev/cfdc76047086
branches: trunk
changeset: 499715:cfdc76047086
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Nov 27 16:08:03 2000 +0000
description:
fix INET6-less build (like x_ftp). PR11578
diffstat:
usr.bin/ftp/ftp.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r c9a0c5317b71 -r cfdc76047086 usr.bin/ftp/ftp.c
--- a/usr.bin/ftp/ftp.c Mon Nov 27 15:28:41 2000 +0000
+++ b/usr.bin/ftp/ftp.c Mon Nov 27 16:08:03 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.112 2000/11/24 13:01:24 itojun Exp $ */
+/* $NetBSD: ftp.c,v 1.113 2000/11/27 16:08:03 itojun Exp $ */
/*-
* Copyright (c) 1996-2000 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-__RCSID("$NetBSD: ftp.c,v 1.112 2000/11/24 13:01:24 itojun Exp $");
+__RCSID("$NetBSD: ftp.c,v 1.113 2000/11/27 16:08:03 itojun Exp $");
#endif
#endif /* not lint */
@@ -1627,8 +1627,10 @@
#endif
af = (data_addr.su_family == AF_INET) ? 1 : 2;
tmp = data_addr;
+#ifdef INET6
if (tmp.su_family == AF_INET6)
tmp.si_su.su_sin6.sin6_scope_id = 0;
+#endif
if (getnameinfo((struct sockaddr *)&tmp.si_su,
tmp.su_len, hname, sizeof(hname), sname,
sizeof(sname), NI_NUMERICHOST | NI_NUMERICSERV)) {
Home |
Main Index |
Thread Index |
Old Index