summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortonio <tonio>2007-10-16 20:28:46 +0000
committertonio <tonio>2007-10-16 20:28:46 +0000
commitf965230ce25dba2603f6069d51ed005a8d6db17d (patch)
treeb8219825823aba401ec23e7392ec4e8ce2145026 /devel
parent9ddd777e71d15702db94cad318a6e7e43b1b378d (diff)
downloadpkgsrc-f965230ce25dba2603f6069d51ed005a8d6db17d.tar.gz
Fix build under FreeBSD 6.1
Diffstat (limited to 'devel')
-rw-r--r--devel/nspr/distinfo3
-rw-r--r--devel/nspr/patches/patch-an21
2 files changed, 23 insertions, 1 deletions
diff --git a/devel/nspr/distinfo b/devel/nspr/distinfo
index 147baa7a593..036a12d6a99 100644
--- a/devel/nspr/distinfo
+++ b/devel/nspr/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2007/10/04 14:18:21 joerg Exp $
+$NetBSD: distinfo,v 1.11 2007/10/16 20:28:46 tonio Exp $
SHA1 (nspr-4.6.7.tar.gz) = cf45319d02285ec5479445a1e9adfb9e94f55a6a
RMD160 (nspr-4.6.7.tar.gz) = 11a0d8b14ebdd441f6899c464b77144704ab638e
@@ -14,3 +14,4 @@ SHA1 (patch-ai) = ca4d824540f62a97e2072ef0927b6b8f0a362a0a
SHA1 (patch-ak) = b090f571d539cd15f3ebad7c671bb71531e0f817
SHA1 (patch-al) = 80d75bfcebc271dc222cef982a887cd1735e7692
SHA1 (patch-am) = 4b4737524d76d32a45e20041b0fc7a3fc2f8f1c9
+SHA1 (patch-an) = c4e2a633479f1385c56b7cec0e5ead21135b7ccb
diff --git a/devel/nspr/patches/patch-an b/devel/nspr/patches/patch-an
new file mode 100644
index 00000000000..bbf22cab34b
--- /dev/null
+++ b/devel/nspr/patches/patch-an
@@ -0,0 +1,21 @@
+$NetBSD: patch-an,v 1.1 2007/10/16 20:28:46 tonio Exp $
+
+--- mozilla/nsprpub/pr/include/md/_freebsd.h.orig Mon Nov 22 22:24:53 2004
++++ mozilla/nsprpub/pr/include/md/_freebsd.h
+@@ -106,6 +106,16 @@
+ #define _PR_IPV6_V6ONLY_PROBE
+ #endif
+
++#if (__FreeBSD_version >= 700016) || (__FreeBSD_version < 700000 && __FreeBSD_version >= 601103)
++#if defined(_PR_PTHREADS)
++#define _PR_HAVE_GETPROTO_R
++#define _PR_HAVE_5_ARG_GETPROTO_R
++#define _PR_HAVE_GETHOST_R
++#define _PR_HAVE_GETHOST_R_INT
++#define _PR_HAVE_THREADSAFE_GETHOST
++#endif
++#endif
++
+ #define USE_SETJMP
+
+ #ifndef _PR_PTHREADS