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 Pettenò <flameeyes@gentoo.org>.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@212388 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtchang%redhat.com 2006-09-26 17:17:10 +00:00
parent a0437868dc
commit 59c764a67d

View File

@ -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