AC_REQUIRE([CURL_CHECK_HEADER_WS2TCPIP])dnl
AC_CHECK_TYPE([socklen_t], [
dnl socklen_t is available
- AC_DEFINE_UNQUOTED(HAVE_SOCKLEN_T, 1,
- [Define to 1 if socklen_t is available or a equivalent is defined.])
],[
dnl socklen_t not available
AC_CACHE_CHECK([for socklen_t equivalent],
*)
AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
[Type to use in place of socklen_t when system does not provide it.])
- AC_DEFINE_UNQUOTED(HAVE_SOCKLEN_T, 1,
- [Define to 1 if socklen_t is available or a equivalent is defined.])
;;
esac
],[
AC_REQUIRE([CURL_CHECK_HEADER_WS2TCPIP])dnl
AC_CHECK_TYPE([socklen_t], [
dnl socklen_t is available
- AC_DEFINE_UNQUOTED(HAVE_SOCKLEN_T, 1,
- [Define to 1 if socklen_t is available or a equivalent is defined.])
],[
dnl socklen_t not available
AC_CACHE_CHECK([for socklen_t equivalent],
*)
AC_DEFINE_UNQUOTED(socklen_t, $curl_cv_socklen_t_equiv,
[Type to use in place of socklen_t when system does not provide it.])
- AC_DEFINE_UNQUOTED(HAVE_SOCKLEN_T, 1,
- [Define to 1 if socklen_t is available or a equivalent is defined.])
;;
esac
],[
* definition is present the other one also is available.
*/
-#if defined(WIN32) && !defined(HAVE_SOCKLEN_T)
+#if defined(WIN32) && !defined(HAVE_CONFIG_H)
# if ( defined(_MSC_VER) && !defined(INET_ADDRSTRLEN) ) || \
(!defined(_MSC_VER) && !defined(HAVE_WS2TCPIP_H) )
# define socklen_t int
-# define HAVE_SOCKLEN_T
# endif
#endif
* definition is present the other one also is available.
*/
-#if defined(WIN32) && !defined(HAVE_SOCKLEN_T)
+#if defined(WIN32) && !defined(HAVE_CONFIG_H)
# if ( defined(_MSC_VER) && !defined(INET_ADDRSTRLEN) ) || \
(!defined(_MSC_VER) && !defined(HAVE_WS2TCPIP_H) )
# define socklen_t int
-# define HAVE_SOCKLEN_T
# endif
#endif