aboutsummaryrefslogtreecommitdiffstats
path: root/nanohttp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-03 12:06:36 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-03 12:06:36 +0000
commit50f3437111a6428b4852740e83db4848b0b09a97 (patch)
treea2b0d7c54535d7cce9be574eba3474957fa549f2 /nanohttp.c
parent9f4eb911591bff815373d3e272605f2bebe4f087 (diff)
downloadandroid_external_libxml2-50f3437111a6428b4852740e83db4848b0b09a97.tar.gz
android_external_libxml2-50f3437111a6428b4852740e83db4848b0b09a97.tar.bz2
android_external_libxml2-50f3437111a6428b4852740e83db4848b0b09a97.zip
applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC
* DOCBparser.c Makefile.am nanohttp.c parser.c testHTML.c testSAX.c xmlIO.c xmllint.c include/win32config.h include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in win32/README.MSDev win32/dsp/*: applied Win32 Facelift No.2 patches from Igor Zlatkovic for Windows/MSC Daniel
Diffstat (limited to 'nanohttp.c')
-rw-r--r--nanohttp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nanohttp.c b/nanohttp.c
index 8fade163..908103bd 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -542,7 +542,11 @@ xmlNanoHTTPRecv(xmlNanoHTTPCtxtPtr ctxt) {
FD_ZERO(&rfd);
FD_SET(ctxt->fd, &rfd);
- if ( (select(ctxt->fd+1, &rfd, NULL, NULL, &tv)<1) && (errno != EINTR) )
+ if ( (select(ctxt->fd+1, &rfd, NULL, NULL, &tv)<1)
+#if defined(EINTR)
+ && (errno != EINTR)
+#endif
+ )
return(0);
}
return(0);