diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2000-10-12 23:38:33 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2000-10-12 23:38:33 (GMT) |
commit | f53e72cc9f5f8d188926d425e9970b35b523115c (patch) | |
tree | 5d96e32248bb39d1e4d8935b360a9e5ff1929b0a /src | |
parent | 0c70d84368b815d09b706274277e19d40a6c7ded (diff) | |
download | hdf5-f53e72cc9f5f8d188926d425e9970b35b523115c.zip hdf5-f53e72cc9f5f8d188926d425e9970b35b523115c.tar.gz hdf5-f53e72cc9f5f8d188926d425e9970b35b523115c.tar.bz2 |
[svn-r2679]
Purpose:
Just add a few lines so that it will not break windows platform.
Description:
netdb.h cannot be recognized by windows, use winsock.h in windows instead.
Solution:
adding the following lines at the beginning of H5FDstream.c.
If you don't like, you may do it in another way, just keep it work for windows.
#ifdef WIN32
> #include <winsock.h>
> #else
> #endif
Platforms tested:
I am only testing whether it will bother building objects on windows. I haven't tested whether it
will affect the testing results. Hopefully not.
windows 2000, eirene,arabica,gondolin,paz,opus.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDstream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5FDstream.c b/src/H5FDstream.c index 5aef41f..0b2255b 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -13,11 +13,16 @@ * read from/written to a socket during an open/flush operation. */ +/* for windows platform, use winsock.h */ +#ifdef WIN32 +#include <winsock.h> +#else #include <netdb.h> /* gethostbyname */ #include <sys/types.h> /* socket stuff */ #include <sys/socket.h> /* socket stuff */ #include <netinet/in.h> /* socket stuff */ #include <netinet/tcp.h> /* socket stuff */ +#endif #include <H5Eprivate.h> /* error handling */ #include <H5FDpublic.h> /* VFD structures */ |