summaryrefslogtreecommitdiff
path: root/www/MozillaFirebird/patches/patch-be
diff options
context:
space:
mode:
Diffstat (limited to 'www/MozillaFirebird/patches/patch-be')
-rw-r--r--www/MozillaFirebird/patches/patch-be21
1 files changed, 21 insertions, 0 deletions
diff --git a/www/MozillaFirebird/patches/patch-be b/www/MozillaFirebird/patches/patch-be
new file mode 100644
index 00000000000..3cd3be60c13
--- /dev/null
+++ b/www/MozillaFirebird/patches/patch-be
@@ -0,0 +1,21 @@
+$NetBSD: patch-be,v 1.1.1.1 2003/08/16 14:19:36 taya Exp $
+
+diff -ru ../Orig/mozilla/nsprpub/pr/src/io/prsocket.c ./nsprpub/pr/src/io/prsocket.c
+--- ../Orig/mozilla/nsprpub/pr/src/io/prsocket.c 2002-06-12 05:08:07.000000000 +0900
++++ ./nsprpub/pr/src/io/prsocket.c 2003-07-31 23:23:38.000000000 +0900
+@@ -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