mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 08:19:13 -04:00
31 lines
916 B
Text
31 lines
916 B
Text
--- pr/include/md/_freebsd.h.orig 2018-08-28 12:42:28 UTC
|
|
+++ pr/include/md/_freebsd.h
|
|
@@ -59,6 +59,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 2018-08-28 12:42:28 UTC
|
|
+++ pr/src/misc/prnetdb.c
|
|
@@ -81,11 +81,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
|