diff options
Diffstat (limited to 'devel/nspr/patches/patch-ad')
-rw-r--r-- | devel/nspr/patches/patch-ad | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/devel/nspr/patches/patch-ad b/devel/nspr/patches/patch-ad index c14f0685042..a33d5cd359d 100644 --- a/devel/nspr/patches/patch-ad +++ b/devel/nspr/patches/patch-ad @@ -1,8 +1,20 @@ -$NetBSD: patch-ad,v 1.3 2007/03/18 18:49:47 wiz Exp $ +$NetBSD: patch-ad,v 1.4 2009/04/07 08:03:38 hasso Exp $ ---- pr/src/misc/prnetdb.c.orig 2006-11-14 17:41:59.000000000 +0000 -+++ pr/src/misc/prnetdb.c -@@ -2115,7 +2115,17 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf +--- pr/src/misc/prnetdb.c.orig 2006-11-14 19:41:59 +0200 ++++ pr/src/misc/prnetdb.c 2009-04-03 18:29:50 +0300 +@@ -113,6 +113,11 @@ PRLock *_pr_dnsLock = NULL; + #define _PR_HAVE_5_ARG_GETPROTO_R + #endif + ++#if __DragonFly_version >= 200201 ++#define _PR_HAVE_GETPROTO_R ++#define _PR_HAVE_5_ARG_GETPROTO_R ++#endif ++ + #if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) + #define _PR_HAVE_GETPROTO_R + #define _PR_HAVE_5_ARG_GETPROTO_R +@@ -2115,7 +2120,17 @@ PR_IMPLEMENT(PRAddrInfo *) PR_GetAddrInf */ hints.ai_socktype = SOCK_STREAM; |