[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)
This commit is contained in:
Thomas Radke 2000-12-01 17:03:45 -05:00
parent 0473d1c822
commit 14e987f40c

View File

@ -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);