diff options
author | Mike Hommey <glandium@debian.org> | 2010-03-18 07:40:32 +0100 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2010-03-18 07:40:32 +0100 |
commit | eb5d521a2df72fa829a7f8196b957c696e7ccc58 (patch) | |
tree | 224599e18a48f87e82aa8a32456563277c68ae58 /nanohttp.c | |
parent | 8a10e02b2f4971d3fdacab7dc7baecced34056fb (diff) | |
download | libxml2-eb5d521a2df72fa829a7f8196b957c696e7ccc58.tar.gz |
Import upstream version 2.7.7upstream/2.7.7.dfsg
Diffstat (limited to 'nanohttp.c')
-rw-r--r-- | nanohttp.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -478,8 +478,10 @@ xmlNanoHTTPSend(xmlNanoHTTPCtxtPtr ctxt, const char *xmt_ptr, int outlen) * to retrying. */ #ifndef HAVE_POLL_H +#ifndef _WINSOCKAPI_ if (ctxt->fd > FD_SETSIZE) return -1; +#endif tv.tv_sec = timeout; tv.tv_usec = 0; @@ -600,8 +602,10 @@ xmlNanoHTTPRecv(xmlNanoHTTPCtxtPtr ctxt) ) return (0); #else /* !HAVE_POLL_H */ +#ifndef _WINSOCKAPI_ if (ctxt->fd > FD_SETSIZE) return 0; +#endif tv.tv_sec = timeout; tv.tv_usec = 0; @@ -938,8 +942,10 @@ xmlNanoHTTPConnectAttempt(struct sockaddr *addr) #pragma warning(push) #pragma warning(disable: 4018) #endif +#ifndef _WINSOCKAPI_ if (s > FD_SETSIZE) return -1; +#endif FD_ZERO(&wfd); FD_SET(s, &wfd); |