$NetBSD: patch-aa,v 1.3 2013/08/31 14:46:48 joerg 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)) @@ -3320,7 +3320,7 @@ tcp_gethost(struct soap *soap, const cha { host = NULL; soap->errnum = h_errno; } -#elif defined(HAVE_GETHOSTBYNAME_R) +#elif defined(HAVE_GETHOSTBYNAME_R) && !defined(__NetBSD__) host = gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &soap->errnum); #elif defined(VXWORKS) /* If the DNS resolver library resolvLib has been configured in the vxWorks