diff options
Diffstat (limited to 'unmaintained/gsoap/stdsoap2.c.diff')
-rw-r--r-- | unmaintained/gsoap/stdsoap2.c.diff | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/unmaintained/gsoap/stdsoap2.c.diff b/unmaintained/gsoap/stdsoap2.c.diff new file mode 100644 index 0000000000..0d7b7bfec4 --- /dev/null +++ b/unmaintained/gsoap/stdsoap2.c.diff @@ -0,0 +1,11 @@ +--- 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)) |