diff options
author | tegge <tegge@FreeBSD.org> | 2006-05-29 01:43:05 +0800 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2006-05-29 01:43:05 +0800 |
commit | 7cef5ccd3946d6ade0d714abdef38344c91cacc7 (patch) | |
tree | 3439e02fd19252625702ddcffb70ebee0645f744 /devel/linuxthreads | |
parent | b580defab2a751daad63654e40598e608332a685 (diff) | |
download | freebsd-ports-gnome-7cef5ccd3946d6ade0d714abdef38344c91cacc7.tar.gz freebsd-ports-gnome-7cef5ccd3946d6ade0d714abdef38344c91cacc7.tar.zst freebsd-ports-gnome-7cef5ccd3946d6ade0d714abdef38344c91cacc7.zip |
Stop providing reentrant functions already present in libc on newer FreeBSD
versions.
Diffstat (limited to 'devel/linuxthreads')
-rw-r--r-- | devel/linuxthreads/files/getnetby_r.c | 5 | ||||
-rw-r--r-- | devel/linuxthreads/files/getprotoby_r.c | 5 | ||||
-rw-r--r-- | devel/linuxthreads/files/getservby_r.c | 5 |
3 files changed, 15 insertions, 0 deletions
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 <netdb.h> #include <string.h> +#include <sys/param.h> + +#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 <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 */ 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 <netdb.h> #include <string.h> +#include <sys/param.h> + +#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 */ |