summaryrefslogtreecommitdiff
path: root/devel/linuxthreads/files/getprotoby_r.c
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>2006-05-28 17:43:05 +0000
committerTor Egge <tegge@FreeBSD.org>2006-05-28 17:43:05 +0000
commita1d031cc0a0b61428b7999b03319e4fd2dbe7672 (patch)
tree71492b5bd11641fa286695588f8e319c1cddcee6 /devel/linuxthreads/files/getprotoby_r.c
parentBackport 2001-09-11 fix from newer linuxthreads versions making (diff)
Stop providing reentrant functions already present in libc on newer FreeBSD
versions.
Notes
Notes: svn path=/head/; revision=163745
Diffstat (limited to 'devel/linuxthreads/files/getprotoby_r.c')
-rw-r--r--devel/linuxthreads/files/getprotoby_r.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/devel/linuxthreads/files/getprotoby_r.c b/devel/linuxthreads/files/getprotoby_r.c
index fc28ace6b6c8..2e6a7479f877 100644
--- a/devel/linuxthreads/files/getprotoby_r.c
+++ b/devel/linuxthreads/files/getprotoby_r.c
@@ -1,6 +1,9 @@
#include "pthread.h"
#include <netdb.h>
#include <string.h>
+#include <sys/param.h>
+
+#if __FreeBSD_version < 700016
static pthread_mutex_t getprotoby_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -103,3 +106,5 @@ getprotoent_r (struct protoent *result, char *buffer, int buflen)
pthread_mutex_unlock (&getprotoby_mutex);
return result;
}
+
+#endif /* #if __FreeBSD_version < 700016 */