diff options
Diffstat (limited to 'devel/linuxthreads/files/gethostby_r.c')
-rw-r--r-- | devel/linuxthreads/files/gethostby_r.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/linuxthreads/files/gethostby_r.c b/devel/linuxthreads/files/gethostby_r.c index 44aa5227225b..8a171aac05c3 100644 --- a/devel/linuxthreads/files/gethostby_r.c +++ b/devel/linuxthreads/files/gethostby_r.c @@ -7,6 +7,8 @@ #define NEED_ALIGNED_ACCESS #endif +#if __FreeBSD_version < 502104 + static pthread_mutex_t gethostby_mutex = PTHREAD_MUTEX_INITIALIZER; static int @@ -166,3 +168,5 @@ gethostent_r (struct hostent *result, char *buffer, int buflen, pthread_mutex_unlock (&gethostby_mutex); return result; } + +#endif /* #if __FreeBSD_version < 502104 */ |