summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2007-07-21 14:45:12 +0000
committertnn <tnn@pkgsrc.org>2007-07-21 14:45:12 +0000
commitbde72979d76dd0d0e25c6ccbe5be14e20e88bba7 (patch)
treeb4e971635f8683f53bc0fbbc1fd7ef5990e9cffa /pkgtools
parentc0c671a08ccd304a93eece93d08830b73c20e1ff (diff)
downloadpkgsrc-bde72979d76dd0d0e25c6ccbe5be14e20e88bba7.tar.gz
Interix doesn't have sockaddr_in.sin_len.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/files/pbulk/lib/netaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/lib/netaddr.c b/pkgtools/pbulk/files/pbulk/lib/netaddr.c
index bfd29f573a9..f1710269425 100644
--- a/pkgtools/pbulk/files/pbulk/lib/netaddr.c
+++ b/pkgtools/pbulk/files/pbulk/lib/netaddr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: netaddr.c,v 1.3 2007/07/17 12:09:29 tnn Exp $ */
+/* $NetBSD: netaddr.c,v 1.4 2007/07/21 14:45:12 tnn Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -70,7 +70,7 @@ parse_sockaddr_in(const char *str, struct sockaddr_in *addr)
return -1;
addr->sin_port = htons((in_port_t)tmp);
addr->sin_addr = in;
-#if !defined(__sun) && !defined(__hpux)
+#if !defined(__sun) && !defined(__hpux) && !defined(__INTERIX)
addr->sin_len = sizeof(*addr);
#endif
addr->sin_family = AF_INET;