summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2007-06-18 17:11:56 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2007-06-18 17:11:56 (GMT)
commit4d9397a1019cfd08dd36564a34d89bda294996ff (patch)
tree32f0561ac945bb837dac15448911aecc4921eaa6
parentd0a9cf9ffaf0d62d8e793f4a89189a7a01eda7f5 (diff)
downloadhdf5-4d9397a1019cfd08dd36564a34d89bda294996ff.zip
hdf5-4d9397a1019cfd08dd36564a34d89bda294996ff.tar.gz
hdf5-4d9397a1019cfd08dd36564a34d89bda294996ff.tar.bz2
[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.
-rw-r--r--src/H5FDstream.c10
1 files changed, 10 insertions, 0 deletions
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