summaryrefslogtreecommitdiffstats
path: root/www/flock/files
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2002-11-28 21:51:56 +0000
committeralane <alane@FreeBSD.org>2002-11-28 21:51:56 +0000
commitb516cb0dda31e0e21aac3a0747dd5ee9fcde8c57 (patch)
tree928b226de590eee6c30a2ddf89b6eee5893844fc /www/flock/files
parent6804b6bc6391feddccb533ff53e937a460c837ba (diff)
downloadFreeBSD-ports-b516cb0dda31e0e21aac3a0747dd5ee9fcde8c57.zip
FreeBSD-ports-b516cb0dda31e0e21aac3a0747dd5ee9fcde8c57.tar.gz
Updated PORTREVISION to 8. Added patch from mozilla-devel to fix -CURRENT
problem with accessing network sites. Submitted by: Hajimu UMEMOTO <ume@mahoroba.org> Approved by: kris
Diffstat (limited to 'www/flock/files')
-rw-r--r--www/flock/files/patch-nsprpub-pr-src-pthrads-ptio.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/www/flock/files/patch-nsprpub-pr-src-pthrads-ptio.c b/www/flock/files/patch-nsprpub-pr-src-pthrads-ptio.c
new file mode 100644
index 0000000..4a965d4
--- /dev/null
+++ b/www/flock/files/patch-nsprpub-pr-src-pthrads-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);
+ }
OpenPOWER on IntegriCloud