From 14e987f40ca89776609877ed25286bb43845b7c7 Mon Sep 17 00:00:00 2001 From: Thomas Radke Date: Fri, 1 Dec 2000 17:03:45 -0500 Subject: [svn-r3059] Purpose: Bugfix Description: Under SunOS 5.5 the symbol FIONBIO wasn't known. Solution: Include 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) --- src/H5FDstream.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 /* VFD structures */ #include /* memory allocation */ #include /* files */ +#include /* VFD prototypes */ #include /* Stream VFD header */ #ifdef H5FD_STREAM_HAVE_UNIX_SOCKETS @@ -44,6 +45,9 @@ #ifdef H5_HAVE_NETINET_TCP_H #include /* socket stuff */ #endif +#ifdef H5_HAVE_SYS_FILIO_H +#include /* 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); -- cgit v0.12