summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2006-09-26 17:20:40 +0000
committerwtchang%redhat.com <devnull@localhost>2006-09-26 17:20:40 +0000
commit7e8ea3afa856c5ae867b73dae95f0a4aecf97c9b (patch)
tree4cd863a4f59b319adfa30f456724f215336b8cb2
parent2160aa49cf4720664ca4b8382f8f04f3f6be3371 (diff)
downloadnspr-hg-7e8ea3afa856c5ae867b73dae95f0a4aecf97c9b.tar.gz
Bugzilla Bug 354305: allows to build NSPR on FreeBSD 6.2. Support forSUNBIRD_0_3rc1_RC1SUNBIRD_0_3_RELEASESUNBIRD_0_3_BASE
getprotobyname_r() function is added since 6.2-BETA1, with the same 5-args form of GLIBC 2. Contributed by Diego Petten? <flameeyes@gentoo.org>. r=wtc Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r--pr/src/misc/prnetdb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pr/src/misc/prnetdb.c b/pr/src/misc/prnetdb.c
index 7b2c8518..dd9ad713 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
+
/* BeOS has glibc but not the glibc-style getprotobyxxx_r functions. */
#if (defined(__GLIBC__) && __GLIBC__ >= 2 && !defined(XP_BEOS))
#define _PR_HAVE_GETPROTO_R