diff options
author | marcus <marcus@FreeBSD.org> | 2006-07-24 01:21:55 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2006-07-24 01:21:55 +0800 |
commit | a4170edd534bb69d0a985c3381ae70f3d4c4d04b (patch) | |
tree | ace50466222c0faa45805d046060af59d020ec0f /devel | |
parent | fece5f5fda8f3cf9bcfc130051ea8d95fcde12d3 (diff) | |
download | freebsd-ports-gnome-a4170edd534bb69d0a985c3381ae70f3d4c4d04b.tar.gz freebsd-ports-gnome-a4170edd534bb69d0a985c3381ae70f3d4c4d04b.tar.zst freebsd-ports-gnome-a4170edd534bb69d0a985c3381ae70f3d4c4d04b.zip |
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>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/nspr/Makefile | 2 | ||||
-rw-r--r-- | devel/nspr/files/patch-.._pr_include_md__freebsd.h | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/devel/nspr/Makefile b/devel/nspr/Makefile index 09dc1b834e1f..ce76d2466cb7 100644 --- a/devel/nspr/Makefile +++ b/devel/nspr/Makefile @@ -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 diff --git a/devel/nspr/files/patch-.._pr_include_md__freebsd.h b/devel/nspr/files/patch-.._pr_include_md__freebsd.h index d4c9f4ca4e36..b02b5a35df21 100644 --- a/devel/nspr/files/patch-.._pr_include_md__freebsd.h +++ b/devel/nspr/files/patch-.._pr_include_md__freebsd.h @@ -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 |