pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/42190 (lang/ocaml fails to build to Solaris due to patch-ba)
The following reply was made to PR pkg/42190; it has been noted by GNATS.
From: Antoine Reilles <tonio%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/42190 (lang/ocaml fails to build to Solaris due to
patch-ba)
Date: Sat, 17 Oct 2009 11:32:17 +0200
--cmJC7u66zC7hs+87
Content-Type: multipart/mixed; boundary="HlL+5n6rz5pIUxbD"
Content-Disposition: inline
--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi,
Do the following update for patch-ba fix the issue for solaris.
It conditionally uses sa_len depending on the presence of SIN6_LEN,
which should be defined when sa_len exists according to RFC 2553.
antoine
--HlL+5n6rz5pIUxbD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ba
$NetBSD$
--- otherlibs/unix/socketaddr.c.orig 2005-03-24 18:20:53.000000000 +0100
+++ otherlibs/unix/socketaddr.c
@@ -80,6 +80,9 @@ void get_sockaddr(value mladr,
adr->s_inet6.sin6_family = AF_INET6;
adr->s_inet6.sin6_addr = GET_INET6_ADDR(Field(mladr, 0));
adr->s_inet6.sin6_port = htons(Int_val(Field(mladr, 1)));
+#ifdef SIN6_LEN
+ adr->s_gen.sa_len =
+#endif
*adr_len = sizeof(struct sockaddr_in6);
break;
}
@@ -88,6 +91,9 @@ void get_sockaddr(value mladr,
adr->s_inet.sin_family = AF_INET;
adr->s_inet.sin_addr = GET_INET_ADDR(Field(mladr, 0));
adr->s_inet.sin_port = htons(Int_val(Field(mladr, 1)));
+#ifdef SIN6_LEN
+ adr->s_gen.sa_len =
+#endif
*adr_len = sizeof(struct sockaddr_in);
break;
}
--HlL+5n6rz5pIUxbD--
--cmJC7u66zC7hs+87
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (NetBSD)
iD8DBQFK2Y8h4VqmoGDE/mwRAuJYAJ4gfAUgkDvqc2f6ry5/1bq9andpiwCfcD6M
ynGlmeKHakOAVl+gXqluK0g=
=WgiS
-----END PGP SIGNATURE-----
--cmJC7u66zC7hs+87--
Home |
Main Index |
Thread Index |
Old Index