summaryrefslogtreecommitdiffstats
path: root/devel/nspr/files/patch-..::pr::src::pthreads::ptio.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/nspr/files/patch-..::pr::src::pthreads::ptio.c')
-rw-r--r--devel/nspr/files/patch-..::pr::src::pthreads::ptio.c20
1 files changed, 20 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 000000000..940aaebc0
--- /dev/null
+++ b/devel/nspr/files/patch-..::pr::src::pthreads::ptio.c
@@ -0,0 +1,20 @@
+--- ../pr/src/pthreads/ptio.c.orig Mon Feb 2 10:41:43 2004
++++ ../pr/src/pthreads/ptio.c Mon Feb 2 10:44:49 2004
+@@ -3470,6 +3470,17 @@
+ &on, sizeof(on));
+ }
+ #endif
++#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);
+ }