From ae1a3c13002aeaf84bae8bdebc1215a2a67d34c7 Mon Sep 17 00:00:00 2001 From: Thomas Radke Date: Wed, 8 Nov 2000 17:33:24 -0500 Subject: [svn-r2830] Purpose: Bugfix Description: Rename the [H5_]HAVE_STRUCT_SOCKLEN_T into [H5_]HAVE_SOCKLEN_T. Solution: As pointed out by Bill the socklen_t type isn't a structure if is it defined by the system headers. So we should better take out the _STRUCT_ from the defines. Platforms tested: --- configure | 6 +++--- configure.in | 6 +++--- src/H5config.h.in | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/configure b/configure index 5e308e2..b47309a 100755 --- a/configure +++ b/configure @@ -7492,8 +7492,8 @@ done EOF - echo $ac_n "checking if struct socklen_t is defined""... $ac_c" 1>&6 -echo "configure:7497: checking if struct socklen_t is defined" >&5 + echo $ac_n "checking if socklen_t is defined""... $ac_c" 1>&6 +echo "configure:7497: checking if socklen_t is defined" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF -#define HAVE_STRUCT_SOCKLEN_T 1 +#define HAVE_SOCKLEN_T 1 EOF echo "$ac_t""yes" 1>&6 else diff --git a/configure.in b/configure.in index d044713..dc50acd 100644 --- a/configure.in +++ b/configure.in @@ -800,8 +800,8 @@ case "$withval" in AC_CHECK_HEADERS(netinet/tcp.h) AC_DEFINE(HAVE_STREAM) - dnl Check if we have struct socklen_t available - AC_MSG_CHECKING([if struct socklen_t is defined]) + dnl Check if 'socklen_t' available + AC_MSG_CHECKING([if socklen_t is defined]) AC_TRY_COMPILE( [ #include @@ -817,7 +817,7 @@ case "$withval" in #endif ], [socklen_t foo; return 0;], - AC_DEFINE(HAVE_STRUCT_SOCKLEN_T) AC_MSG_RESULT(yes), + AC_DEFINE(HAVE_SOCKLEN_T) AC_MSG_RESULT(yes), AC_MSG_RESULT(no) ) ;; diff --git a/src/H5config.h.in b/src/H5config.h.in index 83d7a08..ca36216 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -92,8 +92,8 @@ /* Define if header file is available */ #undef HAVE_NETINET_TCP_H -/* Define if struct socklen_t is known */ -#undef HAVE_STRUCT_SOCKLEN_T +/* Define if 'socklen_t' is available */ +#undef HAVE_SOCKLEN_T /* The number of bytes in a __int64. */ #undef SIZEOF___INT64 -- cgit v0.12