summaryrefslogtreecommitdiff
path: root/devel/gsoap/patches/patch-aa
blob: 9007abddaeff807403276afd0801f458e492ec6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-aa,v 1.2 2010/09/18 12:11:36 obache Exp $

DragonFly support.

--- gsoap/stdsoap2.c.orig	2010-05-09 18:10:13.000000000 +0000
+++ gsoap/stdsoap2.c
@@ -3311,7 +3311,7 @@ tcp_gethost(struct soap *soap, const cha
   { memcpy(inaddr, &iadd, sizeof(iadd));
     return SOAP_OK;
   }
-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__)))
+#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__) || defined(__DragonFly__)))
   if (gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum) < 0)
     host = NULL;
 #elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))