aports/testing/gsoap/stdsoap2.c.diff
xming 9aa7f50f6b testing/gsoap: new aport
A cross-platform C and C++ SDK for SOAP/XML Web service
http://gsoap2.sourceforge.net
2015-10-27 12:05:49 +00:00

12 lines
637 B
Diff

--- gsoap-2.8.orig/gsoap/stdsoap2.c
+++ gsoap-2.8/gsoap/stdsoap2.c
@@ -3963,7 +3963,7 @@
{ memcpy(inaddr, &iadd, sizeof(iadd));
return SOAP_OK;
}
-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__)
+#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) || defined(LINUX)
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))