blob: a9eac4382496f38e5808bb7c5bc403395782cc94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- soapcpp2/stdsoap2.c.orig Tue Dec 19 11:28:08 2006
+++ soapcpp2/stdsoap2.c Tue Dec 19 11:36:34 2006
@@ -3335,7 +3335,11 @@
soap->errnum = h_errno;
}
#elif defined(HAVE_GETHOSTBYNAME_R)
+#if defined(__FreeBSD__)
+ gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum);
+#else
host = gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &soap->errnum);
+#endif
#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
|