diff options
Diffstat (limited to 'www/mozilla-stable/patches/patch-be')
-rw-r--r-- | www/mozilla-stable/patches/patch-be | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www/mozilla-stable/patches/patch-be b/www/mozilla-stable/patches/patch-be new file mode 100644 index 00000000000..83588bc30a6 --- /dev/null +++ b/www/mozilla-stable/patches/patch-be @@ -0,0 +1,19 @@ +diff -ru ../Orig/mozilla/nsprpub/pr/src/io/prsocket.c ./nsprpub/pr/src/io/prsocket.c +--- ../Orig/mozilla/nsprpub/pr/src/io/prsocket.c Wed Apr 10 12:17:03 2002 ++++ ./nsprpub/pr/src/io/prsocket.c Wed Sep 11 23:47:59 2002 +@@ -1299,6 +1299,15 @@ + if (osfd == -1) { + return 0; + } ++#if defined(__NetBSD__) && defined(_PR_INET6) && defined(IPV6_V6ONLY) ++ if(domain == PR_AF_INET6){ ++ int opt = 0; ++ if(setsockopt(osfd, IPPROTO_IPV6, IPV6_V6ONLY, &opt, sizeof(opt))){ ++ close(osfd); ++ return -1; ++ } ++ } ++#endif + if (type == SOCK_STREAM) + fd = PR_AllocFileDesc(osfd, PR_GetTCPMethods()); + else |