diff options
author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-05-01 11:22:21 +0800 |
---|---|---|
committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2006-05-01 11:22:21 +0800 |
commit | 000390ed4ab0465bda01f64021e88de1f2a48cd3 (patch) | |
tree | 2e98f97e92f144b7968a5408f9ae49d47436fe2d /net/irrd | |
parent | 3d4848723dfedf7d33b2ac845f1dcdc96a86e6bb (diff) | |
download | freebsd-ports-gnome-000390ed4ab0465bda01f64021e88de1f2a48cd3.tar.gz freebsd-ports-gnome-000390ed4ab0465bda01f64021e88de1f2a48cd3.tar.zst freebsd-ports-gnome-000390ed4ab0465bda01f64021e88de1f2a48cd3.zip |
Make it buildable on recent 7-CURRENT.
Reported by: ports-sparc64 via maintainer
Approved by: maintainer
Diffstat (limited to 'net/irrd')
-rw-r--r-- | net/irrd/files/patch-lib_mrt_prefix.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/irrd/files/patch-lib_mrt_prefix.c b/net/irrd/files/patch-lib_mrt_prefix.c new file mode 100644 index 000000000000..28ef751dd7e9 --- /dev/null +++ b/net/irrd/files/patch-lib_mrt_prefix.c @@ -0,0 +1,22 @@ +Index: lib/mrt/prefix.c +diff -u -p lib/mrt/prefix.c.orig lib/mrt/prefix.c +--- lib/mrt/prefix.c.orig Fri Aug 31 03:10:31 2001 ++++ lib/mrt/prefix.c Mon May 1 12:05:11 2006 +@@ -15,7 +15,7 @@ + #include <ws2tcpip.h> + #endif /* NT */ + +-#ifndef __GLIBC__ ++#if !defined(__GLIBC__) && !defined(__FreeBSD__) + #ifdef __osf__ + + /* apparently, OSF's gethostby{name,addr}_r's are different, broken, and +@@ -50,7 +50,7 @@ struct hostent *gethostbyaddr_r + For the time being, this part tries to convert Linux glibc 2.X + gethostXX_r into Solaris's that we use to code MRT. -- masaki + */ +-#if __GLIBC__ >= 2 ++#if __GLIBC__ >= 2 || (defined(__FreeBSD__) && defined(HAVE_GETHOSTBYNAME_R)) + /* Glibc 2.X + + int gethostbyname_r (const char *name, struct hostent *result_buf, |