]> gitweb @ CieloNegro.org - pkgsrc-firefox3.git/blob - patches/patch-br
Initial revision of the upstream www/firefox3
[pkgsrc-firefox3.git] / patches / patch-br
1 $NetBSD: patch-br,v 1.1.1.1 2008/06/28 10:01:07 tnn Exp $
2
3 diff -ruN ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c ./nsprpub/pr/src/misc/prnetdb.c
4 --- ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c       2005-08-19 02:24:38.000000000 +0900
5 +++ ./nsprpub/pr/src/misc/prnetdb.c     2005-12-04 19:18:10.000000000 +0900
6 @@ -2110,7 +2110,17 @@
7           */
8          hints.ai_socktype = SOCK_STREAM;
9  
10 +/* NetBSD >= 2.99.9 has a thread-safe resolver */
11 +#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900
12 +       LOCK_DNS();
13 +#endif
14 +
15          rv = GETADDRINFO(hostname, NULL, &hints, &res);
16 +
17 +#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900
18 +        UNLOCK_DNS();
19 +#endif
20 +
21          if (rv == 0)
22              return (PRAddrInfo *) res;
23