diff options
author | ume <ume@FreeBSD.org> | 2006-08-14 00:01:40 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-08-14 00:01:40 +0800 |
commit | 126d60191a2c17860209b74ff8508c04c68b6888 (patch) | |
tree | 66c748910f612fe2bef95de662db6726da1d6d1c /devel | |
parent | 57e6f95298006134be191c3dcefcf17279b1a45a (diff) | |
download | freebsd-ports-gnome-126d60191a2c17860209b74ff8508c04c68b6888.tar.gz freebsd-ports-gnome-126d60191a2c17860209b74ff8508c04c68b6888.tar.zst freebsd-ports-gnome-126d60191a2c17860209b74ff8508c04c68b6888.zip |
Make it buildable on RELENG_6 after MFC of getXXX_r(3).
Reported by: Eric Schuele <e.schuele__at__computer.org>,
Ganbold <ganbold__at__micom.mng.net>
Approved by: tegge (maintainer)
Diffstat (limited to 'devel')
-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, 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 */ |