diff options
author | hasso <hasso@pkgsrc.org> | 2009-04-07 17:58:19 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-04-07 17:58:19 +0000 |
commit | 3970937b42a48cad577849399341ca0fe8d3b283 (patch) | |
tree | a2b12e289a4a0795b2b1f4f8a9216b6f02a0f0e4 /net/irrd | |
parent | 9d2140de0849676e0891cf2cc6468f90399ed201 (diff) | |
download | pkgsrc-3970937b42a48cad577849399341ca0fe8d3b283.tar.gz |
Make it build on FreeBSD and DragonFly.
Diffstat (limited to 'net/irrd')
-rw-r--r-- | net/irrd/distinfo | 3 | ||||
-rw-r--r-- | net/irrd/patches/patch-ad | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/net/irrd/distinfo b/net/irrd/distinfo index b539af1a14b..8abe2c5f13f 100644 --- a/net/irrd/distinfo +++ b/net/irrd/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2006/07/05 21:39:42 wiz Exp $ +$NetBSD: distinfo,v 1.12 2009/04/07 17:58:19 hasso Exp $ SHA1 (irrd2.2.8.tgz) = cfaf5fb6e4abdd2bce8de0233231dd2514c5d111 RMD160 (irrd2.2.8.tgz) = 74688380c6cdcc8ddaa5ebf8705c10922f02fb8b @@ -6,3 +6,4 @@ Size (irrd2.2.8.tgz) = 693852 bytes SHA1 (patch-aa) = 3059131bad8df2071ae64ea5e9d0c6f858a7ae2e SHA1 (patch-ab) = d9172a35b907dbaac24ef7b72fcce05310d674bd SHA1 (patch-ac) = 5ea304aad5a2b3a2e835e63ac58ebbb83f12a5c3 +SHA1 (patch-ad) = 313a1d44c4623123f7c2a37ff2740887fa32bdb2 diff --git a/net/irrd/patches/patch-ad b/net/irrd/patches/patch-ad new file mode 100644 index 00000000000..495939e9323 --- /dev/null +++ b/net/irrd/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.3 2009/04/07 17:58:19 hasso Exp $ + +--- lib/mrt/prefix.c.orig ++++ lib/mrt/prefix.c +@@ -5,7 +5,7 @@ + #include <mrt.h> + #include <netdb.h> + +-#ifndef __GLIBC__ ++#if !defined(__GLIBC__) && !(defined(__FreeBSD__) && (__FreeBSD_version + 0 >= 601103)) && !(defined(__DragonFly__) && (__DragonFly_version + 0 >= 200202)) + #ifdef __osf__ + + /* apparently, OSF's gethostby{name,addr}_r's are different, broken, and +@@ -40,7 +40,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__) && (__FreeBSD_version + 0 >= 601103)) || (defined(__DragonFly__) && (__DragonFly_version + 0 >= 200202)) + /* Glibc 2.X + + int gethostbyname_r (const char *name, struct hostent *result_buf, |