mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Actually add the patch that enables IPv4 mapped IPv6 address support.
This commit is contained in:
parent
3af4fc3ea1
commit
1f2e12478c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70065
23
devel/nspr/files/patch-..::pr::src::pthreads::ptio.c
Normal file
23
devel/nspr/files/patch-..::pr::src::pthreads::ptio.c
Normal file
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user