aboutsummaryrefslogtreecommitdiff
path: root/devel/linuxthreads
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-08-13 16:01:40 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-08-13 16:01:40 +0000
commit504653818a9d41e81f3e80c9bfeaa8edf08f3fcd (patch)
treefc01d836f0614c0beff5f22dcf292aefd2724cf1 /devel/linuxthreads
parent89e39444634879da6dde5f70187295c655bf62e3 (diff)
downloadports-504653818a9d41e81f3e80c9bfeaa8edf08f3fcd.tar.gz
ports-504653818a9d41e81f3e80c9bfeaa8edf08f3fcd.zip
Notes
Diffstat (limited to 'devel/linuxthreads')
-rw-r--r--devel/linuxthreads/files/getnetby_r.c5
-rw-r--r--devel/linuxthreads/files/getprotoby_r.c5
-rw-r--r--devel/linuxthreads/files/getservby_r.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/devel/linuxthreads/files/getnetby_r.c b/devel/linuxthreads/files/getnetby_r.c
index 86fa6baccd2b..e6c6b6b1f2f6 100644
--- a/devel/linuxthreads/files/getnetby_r.c
+++ b/devel/linuxthreads/files/getnetby_r.c
@@ -3,7 +3,8 @@
#include <string.h>
#include <sys/param.h>
-#if __FreeBSD_version < 700016
+#if (__FreeBSD_version >= 700000 && __FreeBSD_version < 700016) || \
+ __FreeBSD_version < 601103
static pthread_mutex_t getnetby_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -107,4 +108,4 @@ getnetent_r (struct netent *result, char *buffer, int buflen)
return result;
}
-#endif /* #if __FreeBSD_version < 700016 */
+#endif /* #if __FreeBSD_version < 601103 */
diff --git a/devel/linuxthreads/files/getprotoby_r.c b/devel/linuxthreads/files/getprotoby_r.c
index 2e6a7479f877..211cfaeeb26e 100644
--- a/devel/linuxthreads/files/getprotoby_r.c
+++ b/devel/linuxthreads/files/getprotoby_r.c
@@ -3,7 +3,8 @@
#include <string.h>
#include <sys/param.h>
-#if __FreeBSD_version < 700016
+#if (__FreeBSD_version >= 700000 && __FreeBSD_version < 700016) || \
+ __FreeBSD_version < 601103
static pthread_mutex_t getprotoby_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -107,4 +108,4 @@ getprotoent_r (struct protoent *result, char *buffer, int buflen)
return result;
}
-#endif /* #if __FreeBSD_version < 700016 */
+#endif /* #if __FreeBSD_version < 601103 */
diff --git a/devel/linuxthreads/files/getservby_r.c b/devel/linuxthreads/files/getservby_r.c
index 00d1c465b43d..8030edd49635 100644
--- a/devel/linuxthreads/files/getservby_r.c
+++ b/devel/linuxthreads/files/getservby_r.c
@@ -3,7 +3,8 @@
#include <string.h>
#include <sys/param.h>
-#if __FreeBSD_version < 700016
+#if (__FreeBSD_version >= 700000 && __FreeBSD_version < 700016) || \
+ __FreeBSD_version < 601103
static pthread_mutex_t getservby_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -115,4 +116,4 @@ getservent_r (struct servent *result, char *buffer, int buflen)
return result;
}
-#endif /* #if __FreeBSD_version < 700016 */
+#endif /* #if __FreeBSD_version < 601103 */