Add a proper test for socklen_t
This commit was SVN r5662.
Этот коммит содержится в:
родитель
e06f0723a8
Коммит
f374559d14
@ -1093,6 +1093,14 @@ AC_DEFINE_UNQUOTED(OMPI_USE_STDBOOL_H, $OMPI_USE_STDBOOL_H,
|
|||||||
AC_MSG_RESULT([$MSG])
|
AC_MSG_RESULT([$MSG])
|
||||||
|
|
||||||
|
|
||||||
|
# Check for socklen_t. Don't do this with all the other
|
||||||
|
# AC_CHECK_TYPES checks, above, because we want this to be after the
|
||||||
|
# big AC_CHECK_HEADERS (above) so that the test will automatically
|
||||||
|
# include <sys/socket.h>, which is where socklen_t should be defined.
|
||||||
|
|
||||||
|
AC_CHECK_TYPES(socklen_t)
|
||||||
|
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
# Libraries
|
# Libraries
|
||||||
##################################
|
##################################
|
||||||
|
@ -101,7 +101,7 @@ typedef void* ompi_iov_base_ptr_t;
|
|||||||
* handle differences in socklen_t
|
* handle differences in socklen_t
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__linux__) || defined(_AIX)
|
#if defined(HAVE_SOCKLEN_T)
|
||||||
typedef socklen_t ompi_socklen_t;
|
typedef socklen_t ompi_socklen_t;
|
||||||
#else
|
#else
|
||||||
typedef int ompi_socklen_t;
|
typedef int ompi_socklen_t;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user