diff --git a/src/H5FDstream.c b/src/H5FDstream.c index 06eaaaff8d..82828ac01b 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -66,6 +66,16 @@ #endif #endif +/* + * WinXP x64 does not define EWOULDBLOCK, but instead uses + * their own Windows-specific macro, so define it here. + */ + #ifdef _WIN32 + #ifndef EWOULDBLOCK + #define EWOULDBLOCK WSAEWOULDBLOCK + #endif /* EWOULDBLOCK */ + #endif /* _WIN32 */ + #ifndef H5_HAVE_SOCKLEN_T typedef int socklen_t; #endif