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
7 +#if defined(DRAGONFLY)
8 +#define _PR_HAVE_GETPROTO_R
9 +#define _PR_HAVE_5_ARG_GETPROTO_R
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)
18 #elif (defined(DARWIN) && defined(HAVE_GETIFADDRS)) || defined(FREEBSD) \
19 - || defined(NETBSD) || defined(OPENBSD)
20 + || defined(NETBSD) || defined(OPENBSD) || defined(DRAGONFLY)
23 * Use the BSD getifaddrs function.