summaryrefslogtreecommitdiff
path: root/www/firefox-devel/files/patch-nsprpub-pr-src-pthreads-ptio.c
diff options
context:
space:
mode:
authorAlan Eldridge <alane@FreeBSD.org>2002-12-14 22:49:59 +0000
committerAlan Eldridge <alane@FreeBSD.org>2002-12-14 22:49:59 +0000
commitce7094e45190dd4f0198f72159b2569db592e230 (patch)
treed2ce0e9d6c7b33b2d705a0abc199ec7e4faa0e28 /www/firefox-devel/files/patch-nsprpub-pr-src-pthreads-ptio.c
parentFix build by USE_LINUX=yes instead of explicit (bogus) dependency (diff)
The problem wasn't the patch, it was third party font ports. The patch has
been restored, extra knobs have added, and extensive diagnostics have been added. PLEASE upgrade to this version. Approved by: kris (part of phoenix upgrade)
Notes
Notes: svn path=/head/; revision=71643
Diffstat (limited to '')
-rw-r--r--www/firefox-devel/files/patch-nsprpub-pr-src-pthreads-ptio.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/www/firefox-devel/files/patch-nsprpub-pr-src-pthreads-ptio.c b/www/firefox-devel/files/patch-nsprpub-pr-src-pthreads-ptio.c
new file mode 100644
index 000000000000..4a965d4c7440
--- /dev/null
+++ b/www/firefox-devel/files/patch-nsprpub-pr-src-pthreads-ptio.c
@@ -0,0 +1,22 @@
+Index: nsprpub/pr/src/pthreads/ptio.c
+diff -u nsprpub/pr/src/pthreads/ptio.c.orig nsprpub/pr/src/pthreads/ptio.c
+--- nsprpub/pr/src/pthreads/ptio.c.orig Fri Apr 12 03:14:39 2002
++++ nsprpub/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);
+ }