9372577180
Firefox 4 is based on the Gecko 2.0 Web platform. This release features JavaScript execution speeds up to six times faster than the previous version, new capabilities for Web Developers and Add-on Developers such as hardware accelerated graphics and HTML5 technologies, and a completely revised user interface.
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
$NetBSD: patch-ae,v 1.2 2011/04/26 14:16:36 tnn Exp $
|
|
|
|
--- nsprpub/pr/src/misc/prnetdb.c.orig 2010-05-03 18:21:00.000000000 +0000
|
|
+++ nsprpub/pr/src/misc/prnetdb.c
|
|
@@ -104,7 +104,7 @@ PRLock *_pr_dnsLock = NULL;
|
|
|| defined(AIX4_3_PLUS) || (defined(AIX) && defined(_THREAD_SAFE)) \
|
|
|| (defined(HPUX10_10) && defined(_REENTRANT)) \
|
|
|| (defined(HPUX10_20) && defined(_REENTRANT)) \
|
|
- || defined(OPENBSD)
|
|
+ || defined(OPENBSD) || defined(NETBSD)
|
|
#define _PR_HAVE_GETPROTO_R
|
|
#define _PR_HAVE_GETPROTO_R_INT
|
|
#endif
|
|
@@ -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.
|
|
@@ -2039,7 +2044,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;
|
|
|