diff options
Diffstat (limited to 'www/firefox/patches/patch-am')
-rw-r--r-- | www/firefox/patches/patch-am | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/www/firefox/patches/patch-am b/www/firefox/patches/patch-am new file mode 100644 index 00000000000..1d7420631b2 --- /dev/null +++ b/www/firefox/patches/patch-am @@ -0,0 +1,40 @@ +$NetBSD: patch-am,v 1.1.1.1 2004/02/29 17:45:02 xtraeme Exp $ + +--- nsprpub/pr/src/pthreads/ptio.c.orig 2004-02-27 14:40:00.000000000 +0900 ++++ nsprpub/pr/src/pthreads/ptio.c 2004-02-27 14:43:11.000000000 +0900 +@@ -192,7 +192,7 @@ + #endif + #endif + +-#ifdef DARWIN ++#if defined(DARWIN) || (defined(__NetBSD__) && defined(IPV6_V6ONLY)) + static PRBool _pr_ipv6_v6only_on_by_default; + /* The IPV6_V6ONLY socket option is not defined on Mac OS X 10.1. */ + #ifndef IPV6_V6ONLY +@@ -205,7 +205,7 @@ + #elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(HPUX) \ + || defined(LINUX) || defined(FREEBSD) || defined(BSDI) || defined(VMS) \ + || defined(NTO) || defined(OPENBSD) || defined(DARWIN) \ +- || defined(UNIXWARE) ++ || defined(UNIXWARE) || defined(NETBSD) + #define _PRSockOptVal_t void * + #else + #error "Cannot determine architecture" +@@ -1157,7 +1157,7 @@ + _pr_stderr = pt_SetMethods(2, PR_DESC_FILE, PR_FALSE, PR_TRUE); + PR_ASSERT(_pr_stdin && _pr_stdout && _pr_stderr); + +-#ifdef DARWIN ++#if defined(DARWIN) || (defined(__NetBSD__) && defined(IPV6_V6ONLY)) + /* In Mac OS X v10.3 Panther Beta the IPV6_V6ONLY socket option + * is turned on by default, contrary to what RFC 3493, Section + * 5.3 says. So we have to turn it off. Find out whether we +@@ -3477,7 +3477,7 @@ + if (osfd == -1) pt_MapError(_PR_MD_MAP_SOCKET_ERROR, errno); + else + { +-#ifdef DARWIN ++#if defined(DARWIN) || (defined(__NetBSD__) && defined(IPV6_V6ONLY)) + if ((domain == AF_INET6) && _pr_ipv6_v6only_on_by_default) + { + int on = 0; |