summaryrefslogtreecommitdiff
path: root/net/tnftp
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-10-28 10:40:36 +0000
committertnn <tnn@pkgsrc.org>2007-10-28 10:40:36 +0000
commit9783aa4c32065735cfcdfebdc045688e9c18500e (patch)
treecbb1728962aa4864934b4d8bdeed0a587df3a4af /net/tnftp
parent77857cf839a1a37f3209ab9c3d27ece059ec5358 (diff)
downloadpkgsrc-9783aa4c32065735cfcdfebdc045688e9c18500e.tar.gz
Fix build on OSF/1 by using the correct config.h define when setting
sin.sin_len. No reply from lukem in ~2 weeks but I am confident this is the correct fix.
Diffstat (limited to 'net/tnftp')
-rw-r--r--net/tnftp/files/src/ftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/tnftp/files/src/ftp.c b/net/tnftp/files/src/ftp.c
index d06a3d1ce43..036e637aa81 100644
--- a/net/tnftp/files/src/ftp.c
+++ b/net/tnftp/files/src/ftp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ftp.c,v 1.7 2007/08/07 02:07:02 lukem Exp $ */
+/* $NetBSD: ftp.c,v 1.8 2007/10/28 10:40:36 tnn Exp $ */
/* from NetBSD: ftp.c,v 1.152 2007/07/22 05:02:50 lukem Exp */
/*-
@@ -154,12 +154,12 @@ struct sockinet {
struct sockaddr_in6 su_sin6;
#endif
} si_su;
-#if !defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
+#if !defined(HAVE_STRUCT_SOCKADDR_IN_SIN_LEN)
int si_len;
#endif
};
-#if !defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
+#if !defined(HAVE_STRUCT_SOCKADDR_IN_SIN_LEN)
# define su_len si_len
#else
# define su_len si_su.su_sin.sin_len
@@ -2122,7 +2122,7 @@ ai_unmapped(struct addrinfo *ai)
sin.sin_port = sin6->sin6_port;
ai->ai_family = AF_INET;
-#if defined(HAVE_STRUCT_SOCKADDR_SA_LEN)
+#if defined(HAVE_STRUCT_SOCKADDR_IN_SIN_LEN)
sin.sin_len = len;
#endif
memcpy(ai->ai_addr, &sin, len);