mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-28 14:35:50 -04:00
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
$NetBSD: patch-ab,v 1.3 2013/08/31 14:46:48 joerg Exp $
|
|
|
|
DragonFly support.
|
|
|
|
--- gsoap/stdsoap2.cpp.orig 2010-05-09 18:10:13.000000000 +0000
|
|
+++ gsoap/stdsoap2.cpp
|
|
@@ -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
|