From 7cef5ccd3946d6ade0d714abdef38344c91cacc7 Mon Sep 17 00:00:00 2001 From: tegge Date: Sun, 28 May 2006 17:43:05 +0000 Subject: Stop providing reentrant functions already present in libc on newer FreeBSD versions. --- devel/linuxthreads/files/getnetby_r.c | 5 +++++ devel/linuxthreads/files/getprotoby_r.c | 5 +++++ devel/linuxthreads/files/getservby_r.c | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'devel/linuxthreads') diff --git a/devel/linuxthreads/files/getnetby_r.c b/devel/linuxthreads/files/getnetby_r.c index 75bc2a8b5476..86fa6baccd2b 100644 --- a/devel/linuxthreads/files/getnetby_r.c +++ b/devel/linuxthreads/files/getnetby_r.c @@ -1,6 +1,9 @@ #include "pthread.h" #include #include +#include + +#if __FreeBSD_version < 700016 static pthread_mutex_t getnetby_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -103,3 +106,5 @@ getnetent_r (struct netent *result, char *buffer, int buflen) pthread_mutex_unlock (&getnetby_mutex); return result; } + +#endif /* #if __FreeBSD_version < 700016 */ 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 #include +#include + +#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 */ diff --git a/devel/linuxthreads/files/getservby_r.c b/devel/linuxthreads/files/getservby_r.c index 1c9da2c40405..00d1c465b43d 100644 --- a/devel/linuxthreads/files/getservby_r.c +++ b/devel/linuxthreads/files/getservby_r.c @@ -1,6 +1,9 @@ #include "pthread.h" #include #include +#include + +#if __FreeBSD_version < 700016 static pthread_mutex_t getservby_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -111,3 +114,5 @@ getservent_r (struct servent *result, char *buffer, int buflen) pthread_mutex_unlock (&getservby_mutex); return result; } + +#endif /* #if __FreeBSD_version < 700016 */ -- cgit