diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2000-12-01 22:03:45 (GMT) |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2000-12-01 22:03:45 (GMT) |
commit | 14e987f40ca89776609877ed25286bb43845b7c7 (patch) | |
tree | 1d45b02e144be793ecea7e31a8619959cf66180d /src | |
parent | 0473d1c8225237fa2a891beed3acf900857d5580 (diff) | |
download | hdf5-14e987f40ca89776609877ed25286bb43845b7c7.zip hdf5-14e987f40ca89776609877ed25286bb43845b7c7.tar.gz hdf5-14e987f40ca89776609877ed25286bb43845b7c7.tar.bz2 |
[svn-r3059]
Purpose:
Bugfix
Description:
Under SunOS 5.5 the symbol FIONBIO wasn't known.
Solution:
Include <sys/filio.h> which defines this symbol under Solaris.
Also put the UNUSED qualifier in the right place in a function
argument list (gcc 2.7.2 didn't like it before the type name).
Platforms tested:
SunOS 5.5 (hatteras), SunOS 5.6 t(thor.sistec.kp.dlr.de)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDstream.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5FDstream.c b/src/H5FDstream.c index fd5e306..5c2e6ed 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -30,6 +30,7 @@ #include <H5FDpublic.h> /* VFD structures */ #include <H5MMprivate.h> /* memory allocation */ #include <H5Ppublic.h> /* files */ +#include <H5Pprivate.h> /* VFD prototypes */ #include <H5FDstream.h> /* Stream VFD header */ #ifdef H5FD_STREAM_HAVE_UNIX_SOCKETS @@ -44,6 +45,9 @@ #ifdef H5_HAVE_NETINET_TCP_H #include <netinet/tcp.h> /* socket stuff */ #endif +#ifdef H5_HAVE_SYS_FILIO_H +#include <sys/filio.h> /* socket stuff */ +#endif #endif #ifndef H5_HAVE_SOCKLEN_T @@ -898,7 +902,7 @@ static herr_t H5FD_stream_close (H5FD_t *_stream) * *------------------------------------------------------------------------- */ -static herr_t H5FD_stream_query (const UNUSED H5FD_t *_f, +static herr_t H5FD_stream_query (const H5FD_t UNUSED *_f, unsigned long *flags /* out */) { FUNC_ENTER (H5FD_stream_query, SUCCEED); |