summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-09-26 11:29:29 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-09-26 11:29:29 +0000
commit4b158fa4db7e2deaa13b5e51989513d5c25bb704 (patch)
treecc8230c593409978fe0c8fd3d9bbcca1476f095b /dev-libs/nspr/files
parentutil-vserver-0.30.210 needs =automake-1.9*, fixing DEPEND. This fixes #149085... (diff)
downloadgentoo-2-4b158fa4db7e2deaa13b5e51989513d5c25bb704.tar.gz
gentoo-2-4b158fa4db7e2deaa13b5e51989513d5c25bb704.tar.bz2
gentoo-2-4b158fa4db7e2deaa13b5e51989513d5c25bb704.zip
Add patch to build on FreeBSD 6.2.
(Portage version: 2.1.2_pre1-r1)
Diffstat (limited to 'dev-libs/nspr/files')
-rw-r--r--dev-libs/nspr/files/nspr-4.6.3-fbsd62.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-libs/nspr/files/nspr-4.6.3-fbsd62.patch b/dev-libs/nspr/files/nspr-4.6.3-fbsd62.patch
new file mode 100644
index 000000000000..3c76e94709db
--- /dev/null
+++ b/dev-libs/nspr/files/nspr-4.6.3-fbsd62.patch
@@ -0,0 +1,19 @@
+Index: nspr-4.6.3/mozilla/nsprpub/pr/src/misc/prnetdb.c
+===================================================================
+--- nspr-4.6.3.orig/mozilla/nsprpub/pr/src/misc/prnetdb.c
++++ nspr-4.6.3/mozilla/nsprpub/pr/src/misc/prnetdb.c
+@@ -108,6 +108,14 @@ PRLock *_pr_dnsLock = NULL;
+ #define _PR_HAVE_GETPROTO_R_INT
+ #endif
+
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#if __FreeBSD_version >= 602000
++#define _PR_HAVE_GETPROTO_R
++#define _PR_HAVE_5_ARG_GETPROTO_R
++#endif
++#endif
++
+ #if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2)
+ #define _PR_HAVE_GETPROTO_R
+ #define _PR_HAVE_5_ARG_GETPROTO_R