summaryrefslogtreecommitdiff
path: root/net/libfetch/files/ftp.c
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-02-07 17:20:50 +0000
committerjoerg <joerg@pkgsrc.org>2008-02-07 17:20:50 +0000
commit48690f3324ff6cf55a656e52847005c478218f59 (patch)
treeeb9cf649c566dbcf0de57e2d1497a7f618c303ed /net/libfetch/files/ftp.c
parent986863ab93bca98bbd1b3ff2b81640eb406d51e0 (diff)
downloadpkgsrc-48690f3324ff6cf55a656e52847005c478218f59.tar.gz
Conditionalize sin_len assignment.
Diffstat (limited to 'net/libfetch/files/ftp.c')
-rw-r--r--net/libfetch/files/ftp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/libfetch/files/ftp.c b/net/libfetch/files/ftp.c
index 577d3c68ae6..9d7df5299eb 100644
--- a/net/libfetch/files/ftp.c
+++ b/net/libfetch/files/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.4 2008/02/07 17:19:50 joerg Exp $ */
+/* $NetBSD: ftp.c,v 1.5 2008/02/07 17:20:50 joerg Exp $ */
/*-
* Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
* All rights reserved.
@@ -133,7 +133,10 @@ unmappedaddr(struct sockaddr_in6 *sin6)
sin4->sin_addr.s_addr = addr;
sin4->sin_port = port;
sin4->sin_family = AF_INET;
+#if !defined(__sun) && !defined(__hpux) && !defined(__INTERIX) && \
+ !defined(__digital__) && !defined(__linux)
sin4->sin_len = sizeof(struct sockaddr_in);
+#endif
}
/*