protected an use of EAGAIN, Brian Stafford Daniel

* nanohttp.c: protected an use of EAGAIN, Brian Stafford
Daniel
diff --git a/ChangeLog b/ChangeLog
index 7c8f6a5..96834ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jul 31 18:24:34 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
+
+	* nanohttp.c: protected an use of EAGAIN, Brian Stafford
+
 Tue Jul 31 17:48:44 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
 
 	* include/libxml/xmlIO.h: apply change to close #58141 
diff --git a/nanohttp.c b/nanohttp.c
index 1b3566b..8fade16 100644
--- a/nanohttp.c
+++ b/nanohttp.c
@@ -415,7 +415,9 @@
             if (nsent>0)
                 total_sent += nsent;
 	    else if ( ( nsent == -1 ) && 
+#if defined(EAGAIN) && EAGAIN != EWOULDBLOCK
 	    	      ( socket_errno( ) != EAGAIN ) &&
+#endif
 		        ( socket_errno( ) != EWOULDBLOCK ) ) {
 	        xmlGenericError( xmlGenericErrorContext,
 				"xmlNanoHTTPSend error:  %s",