mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Add additional definitions now that we have gethost_r functions and
hour normal gethost functions are thread-safe. Also, wrap thread-safe definitions around a check for _PR_PTHREADS. Reported by: Sean C. Farley <sean-freebsd@farley.org>
This commit is contained in:
parent
ca2abcba7f
commit
35412b878e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168569
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= nspr
|
||||
PORTVERSION= 4.6.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_MOZILLA}
|
||||
MASTER_SITE_SUBDIR= nspr/releases/v${PORTVERSION}/src
|
||||
|
@ -1,12 +1,17 @@
|
||||
--- ../pr/include/md/_freebsd.h.orig Sat Apr 22 17:14:55 2006
|
||||
+++ ../pr/include/md/_freebsd.h Sat Apr 22 17:14:47 2006
|
||||
@@ -106,6 +106,11 @@
|
||||
--- ../pr/include/md/_freebsd.h.orig Mon Nov 22 16:24:53 2004
|
||||
+++ ../pr/include/md/_freebsd.h Sun Jul 23 13:15:29 2006
|
||||
@@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user