summaryrefslogtreecommitdiff
path: root/net/irrd/patches/patch-ad
blob: 495939e9323107e5d865599862a75b7627213746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,