From 59c764a67d2c576ac243f6689d40ea5bd6d48404 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Tue, 26 Sep 2006 17:17:10 +0000 Subject: [PATCH] =?UTF-8?q?Bugzilla=20Bug=20354305:=20allows=20to=20build?= =?UTF-8?q?=20NSPR=20on=20FreeBSD=206.2.=20Support=20for=20getprotobyname?= =?UTF-8?q?=5Fr()=20function=20is=20added=20since=206.2-BETA1,=20with=20th?= =?UTF-8?q?e=20same=205-args=20form=20of=20GLIBC=202.=20=20Contributed=20b?= =?UTF-8?q?y=20Diego=20Petten=C3=B2=20.=20r=3Dwtc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@212388 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/pr/src/misc/prnetdb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/nsprpub/pr/src/misc/prnetdb.c b/mozilla/nsprpub/pr/src/misc/prnetdb.c index e5a76a28f45..1aa991df271 100644 --- a/mozilla/nsprpub/pr/src/misc/prnetdb.c +++ b/mozilla/nsprpub/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