ports/devel/nspr/files/patch-bug782109
Jan Beich 032713d124 devel/nspr: cleanup cruft to improve style
- Remove out-of-tree build (in favor of D4157)
- Remove custom do-install (config/nsinstall works fine) [1]
- Convert to new testing framework
- Refresh patches with |make makepatch| but leave damage out [2]

[1] Requires PORTREVISION per new entry in plist and DEBUG builds
    no longer embedding WRKDIR in source file name
[2] Here's a list with * indicating severity:
    *** Lost original ptthread.c hunk from patch-bug301986
    *** Mixed patch-bug782111 into patch-bug301986
    ** Duplicated context lines
    * Wrong timestamps with USES=pathfix
2015-11-21 02:26:15 +00:00

31 lines
916 B
Text

--- pr/include/md/_freebsd.h.orig 2015-10-16 13:22:19 UTC
+++ pr/include/md/_freebsd.h
@@ -57,6 +57,14 @@
#define _PR_HAVE_LARGE_OFF_T
#if defined(_PR_PTHREADS)
+#if __FreeBSD_version >= 602000
+#define _PR_HAVE_GETPROTO_R
+#define _PR_HAVE_5_ARG_GETPROTO_R
+#endif
+#if __FreeBSD_version >= 700016
+#define _PR_HAVE_GETHOST_R
+#define _PR_HAVE_GETHOST_R_INT
+#endif
#if __FreeBSD_version >= 400008
/*
* libc_r before this version of FreeBSD doesn't have poll().
--- pr/src/misc/prnetdb.c.orig 2015-10-16 13:22:19 UTC
+++ pr/src/misc/prnetdb.c
@@ -78,11 +78,6 @@ PRLock *_pr_dnsLock = NULL;
#define _PR_HAVE_GETPROTO_R_INT
#endif
-#if __FreeBSD_version >= 602000
-#define _PR_HAVE_GETPROTO_R
-#define _PR_HAVE_5_ARG_GETPROTO_R
-#endif
-
/* BeOS has glibc but not the glibc-style getprotobyxxx_r functions. */
#if (defined(__GLIBC__) && __GLIBC__ >= 2 && !defined(XP_BEOS))
#define _PR_HAVE_GETPROTO_R