diff options
author | wtchang%redhat.com <devnull@localhost> | 2006-11-14 17:41:59 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2006-11-14 17:41:59 +0000 |
commit | bc63506a5dab7e06eb1d84fdcccc55a2a8f082f8 (patch) | |
tree | 4e558b60807e5528954ccc7458fd26469160a266 | |
parent | 2e116dfb34ae1791acda69e3c8281ad613703621 (diff) | |
download | nspr-hg-bc63506a5dab7e06eb1d84fdcccc55a2a8f082f8.tar.gz |
Bugzilla Bug 354305: allows to build NSPR on FreeBSD 6.2. Support for
getprotobyname_r() function is added since 6.2-BETA1, with the same 5-args
form of GLIBC 2. Contributed by Diego Petteno <flameeyes@gentoo.org>.
r=wtc
Tag: NSPR_4_6_BRANCH
-rw-r--r-- | pr/src/misc/prnetdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c index 63b21070..515d9601 100644 --- a/pr/src/misc/prnetdb.c +++ b/pr/src/misc/prnetdb.c @@ -108,6 +108,11 @@ PRLock *_pr_dnsLock = NULL; #define _PR_HAVE_GETPROTO_R_INT #endif +#if __FreeBSD_version >= 602000 +#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 |