mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:37:17 +03:00
tidy-up: drop unused CURL_INADDR_NONE macro and in_addr_t type
Closes #16318
This commit is contained in:
parent
4aec6cdfd3
commit
90b72607fa
8 changed files with 0 additions and 115 deletions
78
acinclude.m4
78
acinclude.m4
|
|
@ -793,84 +793,6 @@ AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [
|
|||
])
|
||||
|
||||
|
||||
dnl TYPE_IN_ADDR_T
|
||||
dnl -------------------------------------------------
|
||||
dnl Check for in_addr_t: it is used to receive the return code of inet_addr()
|
||||
dnl and a few other things.
|
||||
|
||||
AC_DEFUN([TYPE_IN_ADDR_T], [
|
||||
AC_CHECK_TYPE([in_addr_t], ,[
|
||||
dnl in_addr_t not available
|
||||
AC_CACHE_CHECK([for in_addr_t equivalent],
|
||||
[curl_cv_in_addr_t_equiv], [
|
||||
curl_cv_in_addr_t_equiv="unknown"
|
||||
for t in "unsigned long" int size_t unsigned long; do
|
||||
if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
|
||||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
#undef inline
|
||||
#ifdef _WIN32
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#endif
|
||||
]],[[
|
||||
$t data = inet_addr ("1.2.3.4");
|
||||
]])
|
||||
],[
|
||||
curl_cv_in_addr_t_equiv="$t"
|
||||
])
|
||||
fi
|
||||
done
|
||||
])
|
||||
case "$curl_cv_in_addr_t_equiv" in
|
||||
unknown)
|
||||
AC_MSG_ERROR([Cannot find a type to use in place of in_addr_t])
|
||||
;;
|
||||
*)
|
||||
AC_DEFINE_UNQUOTED(in_addr_t, $curl_cv_in_addr_t_equiv,
|
||||
[Type to use in place of in_addr_t when system does not provide it.])
|
||||
;;
|
||||
esac
|
||||
],[
|
||||
#undef inline
|
||||
#ifdef _WIN32
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#endif
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
dnl CURL_CHECK_FUNC_CLOCK_GETTIME_MONOTONIC
|
||||
dnl -------------------------------------------------
|
||||
dnl Check if monotonic clock_gettime is available.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue