diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-11-13 21:16:39 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2002-11-13 21:16:39 +0000 |
commit | 1f2e12478cb697226f04cb55688c9c69e6b2a3a4 (patch) | |
tree | b958d9e56b16d69992eaebd0468dae4723bbcb91 /devel | |
parent | Enable support for IPv4 mapped IPv6 addresses. This will help get (diff) |
Actually add the patch that enables IPv4 mapped IPv6 address support.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/nspr/files/patch-..::pr::src::pthreads::ptio.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/nspr/files/patch-..::pr::src::pthreads::ptio.c b/devel/nspr/files/patch-..::pr::src::pthreads::ptio.c new file mode 100644 index 000000000000..ab7788b2a439 --- /dev/null +++ b/devel/nspr/files/patch-..::pr::src::pthreads::ptio.c @@ -0,0 +1,23 @@ + +$FreeBSD$ + +--- ../pr/src/pthreads/ptio.c.orig Fri Apr 12 03:14:39 2002 ++++ ../pr/src/pthreads/ptio.c Tue Jul 30 18:52:11 2002 +@@ -3414,6 +3414,17 @@ + if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno); + else + { ++#if (defined(_PR_INET6_PROBE) || defined(_PR_INET6)) && \ ++ defined(__FreeBSD__) && defined(IPV6_V6ONLY) ++ if (domain == PR_AF_INET6) { ++ int opt = 0; ++ if (setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, ++ &opt, sizeof(opt))) { ++ close(osfd); ++ return NULL; ++ } ++ } ++#endif + fd = pt_SetMethods(osfd, ftype, PR_FALSE, PR_FALSE); + if (fd == NULL) close(osfd); + } |