aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gsoap/stdsoap2.cpp.diff
diff options
context:
space:
mode:
authorxming <xmingske@gmail.com>2015-10-22 08:36:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-27 12:05:49 +0000
commit9aa7f50f6b7bd411055c6b40b3cdd30d075d47d4 (patch)
treec1265e622c5f3605629e1ea04719751b946901f9 /testing/gsoap/stdsoap2.cpp.diff
parentcd3ead08bb9f56c0f491a6fb085db5ac0efaa2db (diff)
downloadaports-9aa7f50f6b7bd411055c6b40b3cdd30d075d47d4.tar.bz2
aports-9aa7f50f6b7bd411055c6b40b3cdd30d075d47d4.tar.xz
testing/gsoap: new aport
A cross-platform C and C++ SDK for SOAP/XML Web service http://gsoap2.sourceforge.net
Diffstat (limited to 'testing/gsoap/stdsoap2.cpp.diff')
-rw-r--r--testing/gsoap/stdsoap2.cpp.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/gsoap/stdsoap2.cpp.diff b/testing/gsoap/stdsoap2.cpp.diff
new file mode 100644
index 0000000000..66590b3a05
--- /dev/null
+++ b/testing/gsoap/stdsoap2.cpp.diff
@@ -0,0 +1,20 @@
+--- gsoap-2.8.orig/gsoap/stdsoap2.cpp
++++ gsoap-2.8/gsoap/stdsoap2.cpp
+@@ -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))
+@@ -17240,7 +17240,7 @@
+ {
+ #ifndef WIN32
+ # ifdef HAVE_STRERROR_R
+-# ifdef _GNU_SOURCE
++# if defined (_GNU_SOURCE) && defined(__GLIBC__)
+ return strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf)); /* GNU-specific */
+ # else
+ strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf)); /* XSI-compliant */