pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/lib HPUX's sockaddr_in does...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f51a4a788b4d
branches:  trunk
changeset: 530994:f51a4a788b4d
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Jul 17 12:09:29 2007 +0000

description:
HPUX's sockaddr_in doesn't have a sin_len member, so don't initialise it.

diffstat:

 pkgtools/pbulk/files/pbulk/lib/netaddr.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1ebb98b868cf -r f51a4a788b4d pkgtools/pbulk/files/pbulk/lib/netaddr.c
--- a/pkgtools/pbulk/files/pbulk/lib/netaddr.c  Tue Jul 17 10:56:07 2007 +0000
+++ b/pkgtools/pbulk/files/pbulk/lib/netaddr.c  Tue Jul 17 12:09:29 2007 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netaddr.c,v 1.2 2007/06/25 21:38:44 joerg Exp $ */
+/* $NetBSD: netaddr.c,v 1.3 2007/07/17 12:09:29 tnn Exp $ */
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -70,7 +70,7 @@
                return -1;
        addr->sin_port = htons((in_port_t)tmp);
        addr->sin_addr = in;
-#if !defined(__sun)
+#if !defined(__sun) && !defined(__hpux)
        addr->sin_len = sizeof(*addr);
 #endif
        addr->sin_family = AF_INET;



Home | Main Index | Thread Index | Old Index