ports/devel/gsoap/files/patch-soapcpp2-stdsoap2.c
Sergey Matveychuk 48998d3dee - Fix build on CURRENT
Reported by:	kris mail
2006-05-19 21:15:26 +00:00

11 lines
542 B
C

--- soapcpp2/stdsoap2.c.orig Sat May 20 00:20:40 2006
+++ soapcpp2/stdsoap2.c Sat May 20 00:58:33 2006
@@ -3251,7 +3251,7 @@
soap->errnum = h_errno;
}
#elif defined(HAVE_GETHOSTBYNAME_R)
- host = gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &soap->errnum);
+ gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum);
#elif defined(VXWORKS)
/* If the DNS resolver library resolvLib has been configured in the vxWorks
* image, a query for the host IP address is sent to the DNS server, if the