diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2000-11-08 22:33:24 (GMT) |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2000-11-08 22:33:24 (GMT) |
commit | ae1a3c13002aeaf84bae8bdebc1215a2a67d34c7 (patch) | |
tree | 3d08e62ae7f1499836f696b5b4231c541db86d61 | |
parent | 50333fe5150928e755a33933810e46c1bb1966da (diff) | |
download | hdf5-ae1a3c13002aeaf84bae8bdebc1215a2a67d34c7.zip hdf5-ae1a3c13002aeaf84bae8bdebc1215a2a67d34c7.tar.gz hdf5-ae1a3c13002aeaf84bae8bdebc1215a2a67d34c7.tar.bz2 |
[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:
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.in | 6 | ||||
-rw-r--r-- | src/H5config.h.in | 4 |
3 files changed, 8 insertions, 8 deletions
@@ -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 <<EOF #line 7499 "configure" #include "confdefs.h" @@ -7517,7 +7517,7 @@ EOF if { (eval echo configure:7518: \"$ac_compile\") 1>&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 <stdio.h> @@ -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 <netinet/tcp.h> 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 |