From 4d9397a1019cfd08dd36564a34d89bda294996ff Mon Sep 17 00:00:00 2001 From: Scott Wegner Date: Mon, 18 Jun 2007 12:11:56 -0500 Subject: [svn-r13872] WinXP x64 does not define the error code EWOULDBLOCK, but instead uses its own WSAEWOULDBLOCK. Although the stream vfd isn't supported on Windows, this was requested by a user via bug #890. This won't affect any other platforms, but should help, should we ever decide to support stream vfd on Windows. Tested: kagiso, linew, smirom (via h5committest) NOT tested on Windows, as it is unsupported. --- src/H5FDstream.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/H5FDstream.c b/src/H5FDstream.c index 06eaaaf..82828ac 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 -- cgit v0.12