mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[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:
This commit is contained in:
parent
50333fe515
commit
ae1a3c1300
6
configure
vendored
6
configure
vendored
@ -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
|
||||
|
@ -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)
|
||||
)
|
||||
;;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user