diff options
author | hasso <hasso> | 2009-04-07 17:58:19 +0000 |
---|---|---|
committer | hasso <hasso> | 2009-04-07 17:58:19 +0000 |
commit | e9321f3a236270750898d0298dd82314969770f3 (patch) | |
tree | a2b12e289a4a0795b2b1f4f8a9216b6f02a0f0e4 /net/irrd/patches | |
parent | a816872c78fa4fcc864a2818805690e7f471f464 (diff) | |
download | pkgsrc-e9321f3a236270750898d0298dd82314969770f3.tar.gz |
Make it build on FreeBSD and DragonFly.
Diffstat (limited to 'net/irrd/patches')
-rw-r--r-- | net/irrd/patches/patch-ad | 22 |
1 files changed, 22 insertions, 0 deletions
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, |