Update devel/nspr to version 4.10.6
[dports.git] / devel / nspr / dragonfly / patch-nsprpub_pr_src_misc_prnetdb.c
1 --- ../pr/src/misc/prnetdb.c.orig       2014-06-20 12:34:59.566379000 +0000
2 +++ ../pr/src/misc/prnetdb.c
3 @@ -78,6 +78,11 @@ PRLock *_pr_dnsLock = NULL;
4  #define _PR_HAVE_GETPROTO_R_INT
5  #endif
6  
7 +#if defined(DRAGONFLY)
8 +#define _PR_HAVE_GETPROTO_R
9 +#define _PR_HAVE_5_ARG_GETPROTO_R
10 +#endif
11 +
12  /* BeOS has glibc but not the glibc-style getprotobyxxx_r functions. */
13  #if (defined(__GLIBC__) && __GLIBC__ >= 2 && !defined(XP_BEOS))
14  #define _PR_HAVE_GETPROTO_R
15 @@ -295,7 +300,7 @@ _pr_QueryNetIfs(void)
16  }
17  
18  #elif (defined(DARWIN) && defined(HAVE_GETIFADDRS)) || defined(FREEBSD) \
19 -    || defined(NETBSD) || defined(OPENBSD)
20 +    || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY)
21  
22  /*
23   * Use the BSD getifaddrs function.