diff options
Diffstat (limited to 'tderesources/groupwise/soap/stdsoap2.cpp')
-rw-r--r-- | tderesources/groupwise/soap/stdsoap2.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tderesources/groupwise/soap/stdsoap2.cpp b/tderesources/groupwise/soap/stdsoap2.cpp index b83b2bb4..95987858 100644 --- a/tderesources/groupwise/soap/stdsoap2.cpp +++ b/tderesources/groupwise/soap/stdsoap2.cpp @@ -2996,7 +2996,7 @@ tcp_gethost(struct soap *soap, const char *addr, struct in_addr *inaddr) strncpy(addrcopy, addr, strlen(addr)+1); iadd = inet_addr(addrcopy); #else -#if defined(_AIXVERSION_431) || defined(__osf__) +#if defined(_AIXVERSION_431) struct hostent_data ht_data; #endif iadd = inet_addr(addr); @@ -3011,7 +3011,7 @@ tcp_gethost(struct soap *soap, const char *addr, struct in_addr *inaddr) #if defined(__GLIBC__) if (gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum) < 0) host = NULL; -#elif defined(_AIXVERSION_431) || defined(__osf__) +#elif defined(_AIXVERSION_431) memset((void*)&ht_data, 0, sizeof(ht_data)); if (gethostbyname_r(addr, &hostent, &ht_data) < 0) { host = NULL; @@ -3827,9 +3827,6 @@ soap_accept(struct soap *soap) #elif defined(PALM) fcntl((SOAP_SOCKET)soap->master, F_SETFL, fcntl((SOAP_SOCKET)soap->master, F_GETFL,0)&~O_NONBLOCK); fcntl((SOAP_SOCKET)soap->socket, F_SETFL, fcntl((SOAP_SOCKET)soap->socket, F_GETFL,0)&~O_NONBLOCK); -#elif defined(SYMBIAN) - long blocking = 0; - ioctl((SOAP_SOCKET)soap->master, 0/*FIONBIO*/, &blocking); #else fcntl((SOAP_SOCKET)soap->master, F_SETFL, fcntl((SOAP_SOCKET)soap->master, F_GETFL)&~O_NONBLOCK); fcntl((SOAP_SOCKET)soap->socket, F_SETFL, fcntl((SOAP_SOCKET)soap->socket, F_GETFL)&~O_NONBLOCK); @@ -4246,15 +4243,11 @@ soap_begin_send(struct soap *soap) #ifndef UNDER_CE #ifndef WITH_FASTCGI if (!soap_valid_socket(soap->socket)) /* Set win32 stdout or soap->sendfd to BINARY, e.g. to support DIME */ -#ifdef __BORLANDC__ - setmode((SOAP_SOCKET)soap->sendfd, O_BINARY); -#else _setmode((SOAP_SOCKET)soap->sendfd, _O_BINARY); #endif #endif #endif #endif -#endif if (soap->mode & SOAP_IO) { soap->bufidx = 0; soap->buflen = 0; @@ -10821,14 +10814,10 @@ soap_begin_recv(struct soap *soap) #ifndef UNDER_CE #ifndef WITH_FASTCGI if (!soap_valid_socket(soap->socket)) -#ifdef __BORLANDC__ - setmode((SOAP_SOCKET)soap->recvfd, O_BINARY); -#else _setmode((SOAP_SOCKET)soap->recvfd, _O_BINARY); #endif #endif #endif -#endif #ifdef WITH_ZLIB soap->mode &= ~SOAP_ENC_ZLIB; soap->zlib_in = SOAP_ZLIB_NONE; |