diff options
author | joerg <joerg@pkgsrc.org> | 2008-02-07 17:20:50 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-02-07 17:20:50 +0000 |
commit | 3202e79c080850939e48d4bb42891147e37d00b3 (patch) | |
tree | eb9cf649c566dbcf0de57e2d1497a7f618c303ed /net/libfetch | |
parent | abc23578e1d6ceb18d1bb66d6c45c273fbfe61f9 (diff) | |
download | pkgsrc-3202e79c080850939e48d4bb42891147e37d00b3.tar.gz |
Conditionalize sin_len assignment.
Diffstat (limited to 'net/libfetch')
-rw-r--r-- | net/libfetch/files/ftp.c | 5 |
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 } /* |