summaryrefslogtreecommitdiff
path: root/devel/nspr/patches/patch-an
blob: af87f224e02132e074c8f40dda8964e4b4933e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-an,v 1.2 2007/10/17 07:40:50 bjs Exp $

--- pr/include/md/_freebsd.h.orig	Mon Nov 22 22:24:53 2004
+++ 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