23 lines
1.4 KiB
Diff
23 lines
1.4 KiB
Diff
|
--- gsoap/stdsoap2.c.orig 2017-05-22 20:36:36.124570820 -0400
|
||
|
+++ gsoap/stdsoap2.c 2017-05-22 20:36:52.229856096 -0400
|
||
|
@@ -4395,7 +4395,7 @@
|
||
|
return soap->error = SOAP_EOM;
|
||
|
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, sizeof(soap->buf), &host, &soap->errnum) < 0)
|
||
|
host = NULL;
|
||
|
#elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))
|
||
|
--- gsoap/stdsoap2.cpp 2017-05-22 20:43:17.974688879 -0400
|
||
|
+++ gsoap/stdsoap2.cpp.orig 2017-04-07 14:39:02.000000000 -0400
|
||
|
@@ -4395,7 +4395,7 @@
|
||
|
return soap->error = SOAP_EOM;
|
||
|
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, sizeof(soap->buf), &host, &soap->errnum) < 0)
|
||
|
host = NULL;
|
||
|
#elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))
|