]> git.pond.sub.org Git - empserver/commitdiff
Define EWOULDBLOCK for w32 only if it's missing
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 10 Apr 2013 19:34:33 +0000 (21:34 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 04:57:56 +0000 (06:57 +0200)
My version of MinGW provides it.

src/lib/w32/w32misc.h

index 2ad12daea32b717386e61b667f7f63e58c80a880..6705a69cb1db33f561281132f8dbbbfaea9acdc4 100644 (file)
@@ -50,7 +50,9 @@
 #endif /* _MSC_VER */
 
 /* errno.h */
 #endif /* _MSC_VER */
 
 /* errno.h */
+#ifndef EWOULDBLOCK
 #define EWOULDBLOCK EAGAIN
 #define EWOULDBLOCK EAGAIN
+#endif
 
 /* fcntl.h */
 #ifdef _MSC_VER
 
 /* fcntl.h */
 #ifdef _MSC_VER