diff options
author | grant <grant@pkgsrc.org> | 2004-10-04 09:15:29 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2004-10-04 09:15:29 +0000 |
commit | 6045fe12fd75517e0bd71782cce8b8ce41c6d4c6 (patch) | |
tree | 2c2f39dc54c29bfeaadda55bfccae98787a08b00 /www/firefox | |
parent | 40be9fd2cc454f0661df5cbb3a3a8ea95a0937da (diff) | |
download | pkgsrc-6045fe12fd75517e0bd71782cce8b8ce41c6d4c6.tar.gz |
commit a patch for using thread-safe resolver library functions on
NetBSD >=2.0F - I've been running with it for months on -current
without any problems.
Diffstat (limited to 'www/firefox')
-rw-r--r-- | www/firefox/distinfo | 4 | ||||
-rw-r--r-- | www/firefox/patches/patch-br | 16 |
2 files changed, 12 insertions, 8 deletions
diff --git a/www/firefox/distinfo b/www/firefox/distinfo index 12b4f3f4c08..2718f01c86c 100644 --- a/www/firefox/distinfo +++ b/www/firefox/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.17 2004/10/04 09:11:30 grant Exp $ +$NetBSD: distinfo,v 1.18 2004/10/04 09:15:29 grant Exp $ SHA1 (firefox-0.10.1/firefox-1.0PR-source.tar.bz2) = e12f861c8e55fe591053f30e9c9259fa8e662c41 Size (firefox-0.10.1/firefox-1.0PR-source.tar.bz2) = 32380173 bytes @@ -23,7 +23,7 @@ SHA1 (patch-bb) = 9ba4bcd86e581496bbc6b40b3a3f062dfd5e416f SHA1 (patch-bm) = 6bd7bf1262cec43b0324693d43929497c3fb3991 SHA1 (patch-bo) = 357c4cacdc179191d6fe263b4eb62cc56b7ec25f SHA1 (patch-bq) = 3b8a951828b0e6906e4352027b4d36c9b1f8aaae -SHA1 (patch-br) = aa48e974306fdbfc1e71b5fd9c1f5d18771143f5 +SHA1 (patch-br) = 6311da23ec126fe0959cb19502a22c106f8f975c SHA1 (patch-bs) = 81065130c96bf966b22e6abb767a5b674dcb52cb SHA1 (patch-bt) = 8ee09dd2acbbc0c002283b15eafbafb4f324948a SHA1 (patch-bu) = db33b8651e3cb1fbf9a18dbe78e1e8288cfda0ee diff --git a/www/firefox/patches/patch-br b/www/firefox/patches/patch-br index 93295103ed1..39d4ddb465b 100644 --- a/www/firefox/patches/patch-br +++ b/www/firefox/patches/patch-br @@ -1,17 +1,21 @@ -$NetBSD: patch-br,v 1.2 2004/06/23 16:47:12 taya Exp $ +$NetBSD: patch-br,v 1.3 2004/10/04 09:15:29 grant Exp $ -diff -ru ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c ./nsprpub/pr/src/misc/prnetdb.c ---- ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c 2004-01-23 07:22:37.000000000 +0900 -+++ ./nsprpub/pr/src/misc/prnetdb.c 2004-06-15 23:56:46.000000000 +0900 -@@ -2094,7 +2094,12 @@ +--- nsprpub/pr/src/misc/prnetdb.c.orig 2004-01-23 09:22:37.000000000 +1100 ++++ nsprpub/pr/src/misc/prnetdb.c +@@ -2094,7 +2094,17 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf */ hints.ai_socktype = SOCK_STREAM; -+ LOCK_DNS(); ++/* NetBSD >=2.0F has a thread-safe resolver */ ++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 200060000 ++ LOCK_DNS(); ++#endif + rv = GETADDRINFO(hostname, NULL, &hints, &res); + ++#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 200060000 + UNLOCK_DNS(); ++#endif + if (rv == 0) return (PRAddrInfo *) res; |