head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.8 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.4 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.2 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q2:1.2.0.2 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.1.1.1.0.12 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.10 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.8 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.6 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.4 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2009.09.22.13.17.29; author tnn; state dead; branches; next 1.2; 1.2 date 2009.04.07.08.01.01; author hasso; state Exp; branches; next 1.1; 1.1 date 2008.06.28.10.01.07; author tnn; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.06.28.10.01.07; author tnn; state Exp; branches; next ; desc @@ 1.3 log @Send firefox3 on it's way to the happy hunting ground. @ text @$NetBSD: patch-br,v 1.2 2009/04/07 08:01:01 hasso Exp $ --- nsprpub/pr/src/misc/prnetdb.c.orig 2008-05-02 11:18:14 +0300 +++ nsprpub/pr/src/misc/prnetdb.c 2009-04-04 19:53:32 +0300 @@@@ -114,6 +114,11 @@@@ PRLock *_pr_dnsLock = NULL; #define _PR_HAVE_5_ARG_GETPROTO_R #endif +#if __DragonFly_version >= 200202 +#define _PR_HAVE_GETPROTO_R +#define _PR_HAVE_5_ARG_GETPROTO_R +#endif + /* BeOS has glibc but not the glibc-style getprotobyxxx_r functions. */ #if (defined(__GLIBC__) && __GLIBC__ >= 2 && !defined(XP_BEOS)) #define _PR_HAVE_GETPROTO_R @@@@ -331,7 +336,7 @@@@ _pr_QueryNetIfs(void) } #elif (defined(DARWIN) && defined(HAVE_GETIFADDRS)) || defined(FREEBSD) \ - || defined(NETBSD) || defined(OPENBSD) + || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY) /* * Use the BSD getifaddrs function. @@@@ -2023,7 +2028,17 @@@@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf */ hints.ai_socktype = SOCK_STREAM; +/* NetBSD >= 2.99.9 has a thread-safe resolver */ +#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900 + LOCK_DNS(); +#endif + rv = GETADDRINFO(hostname, NULL, &hints, &res); + +#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900 + UNLOCK_DNS(); +#endif + if (rv == 0) return (PRAddrInfo *) res; @ 1.2 log @Make Mozilla products build on DragonFly master. @ text @d1 1 a1 1 $NetBSD: patch-br,v 1.1.1.1 2008/06/28 10:01:07 tnn Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-br,v 1.7 2007/05/12 13:53:09 ghen Exp $ d3 24 a26 4 diff -ruN ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c ./nsprpub/pr/src/misc/prnetdb.c --- ../Orig/mozilla/nsprpub/pr/src/misc/prnetdb.c 2005-08-19 02:24:38.000000000 +0900 +++ ./nsprpub/pr/src/misc/prnetdb.c 2005-12-04 19:18:10.000000000 +0900 @@@@ -2110,7 +2110,17 @@@@ @ 1.1.1.1 log @Import firefox3-3.0 as www/firefox3. This is a new major release of the popular Firefox browser from Mozilla. Based on Gecko 1.9, it brings improvements in the areas of performance, stability, rendering correctness, security, usability and more. Release notes: http://www.mozilla.com/en-US/firefox/3.0/releasenotes/ @ text @@