diff options
author | tnn <tnn> | 2007-08-05 09:03:09 +0000 |
---|---|---|
committer | tnn <tnn> | 2007-08-05 09:03:09 +0000 |
commit | f400e7a2bf0f92777498929270395c7af8868506 (patch) | |
tree | adad07d7a9ed94842055b5f7259162a2b784bf9b | |
parent | cd8e5e145c620975bd5887371c0c2aebe074faf6 (diff) | |
download | pkgsrc-f400e7a2bf0f92777498929270395c7af8868506.tar.gz |
No sin_len on digital unix derivatives. (xxx: time for a configure test?)
-rw-r--r-- | pkgtools/pbulk/files/pbulk/lib/netaddr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/lib/netaddr.c b/pkgtools/pbulk/files/pbulk/lib/netaddr.c index f1710269425..99008fa3923 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.4 2007/07/21 14:45:12 tnn Exp $ */ +/* $NetBSD: netaddr.c,v 1.5 2007/08/05 09:03:09 tnn Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -70,7 +70,8 @@ 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) && !defined(__INTERIX) +#if !defined(__sun) && !defined(__hpux) && !defined(__INTERIX) && \ + !defined(__digital__) addr->sin_len = sizeof(*addr); #endif addr->sin_family = AF_INET; |