Skip to content

Commit

Permalink
fix: remove need and definition of HAVE_SOCKLEN_T symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtse committed May 21, 2008
1 parent 0163b5b commit d8efc99
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions acinclude.m4
Expand Up @@ -775,8 +775,6 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
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],
Expand Down Expand Up @@ -830,8 +828,6 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
*)
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
],[
Expand Down
4 changes: 0 additions & 4 deletions ares/acinclude.m4
Expand Up @@ -244,8 +244,6 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
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],
Expand Down Expand Up @@ -299,8 +297,6 @@ AC_DEFUN([CURL_CHECK_TYPE_SOCKLEN_T], [
*)
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
],[
Expand Down
3 changes: 1 addition & 2 deletions ares/setup_once.h
Expand Up @@ -100,11 +100,10 @@ struct timeval {
* 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

Expand Down
3 changes: 1 addition & 2 deletions lib/setup_once.h
Expand Up @@ -107,11 +107,10 @@ struct timeval {
* 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

Expand Down

0 comments on commit d8efc99

Please sign in to comment.