head 1.2; access; symbols pkgsrc-2014Q1:1.1.0.4 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.2 pkgsrc-2013Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2014.06.11.12.36.17; author joerg; state dead; branches; next 1.1; commitid XezNXGnjQIlDq6Ex; 1.1 date 2013.11.13.13.27.45; author ryoon; state Exp; branches; next ; commitid yl48ej1BkkKQs7dx; desc @@ 1.2 log @Retire old thunderbird versions. @ text @$NetBSD: patch-ae,v 1.1 2013/11/13 13:27:45 ryoon Exp $ --- mozilla/nsprpub/pr/src/misc/prnetdb.c.orig 2012-08-25 00:31:27.000000000 +0000 +++ mozilla/nsprpub/pr/src/misc/prnetdb.c @@@@ -73,7 +73,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 @@@@ -83,6 +83,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 @@@@ -300,7 +305,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. @@@@ -2044,6 +2049,11 @@@@ 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); #ifdef AI_ADDRCONFIG if (rv == EAI_BADFLAGS && (hints.ai_flags & AI_ADDRCONFIG)) { @@@@ -2051,6 +2061,11 @@@@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf rv = GETADDRINFO(hostname, NULL, &hints, &res); } #endif + +#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 299000900 + UNLOCK_DNS(); +#endif + if (rv == 0) return (PRAddrInfo *) res; @ 1.1 log @Import thunderbird17-17.0.10 as mail/thunderbird17. Mozilla Thunderbird is a redesign of the Mozilla mail component. The goal is to produce a cross platform stand alone mail application using the XUL user interface language. This version uses the gtk2 toolkit. This package tracks 24 ESR release branch. @ text @d1 1 a1 1 $NetBSD: patch-ae,v 1.11 2012/09/02 06:43:39 ryoon Exp $ @