summaryrefslogtreecommitdiff
path: root/net/irrd/patches
diff options
context:
space:
mode:
authorhasso <hasso>2009-04-07 17:58:19 +0000
committerhasso <hasso>2009-04-07 17:58:19 +0000
commite9321f3a236270750898d0298dd82314969770f3 (patch)
treea2b12e289a4a0795b2b1f4f8a9216b6f02a0f0e4 /net/irrd/patches
parenta816872c78fa4fcc864a2818805690e7f471f464 (diff)
downloadpkgsrc-e9321f3a236270750898d0298dd82314969770f3.tar.gz
Make it build on FreeBSD and DragonFly.
Diffstat (limited to 'net/irrd/patches')
-rw-r--r--net/irrd/patches/patch-ad22
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,