now sets a type for in_addr_t even if it isn't found in the #include files

like on my linux box
This commit is contained in:
Daniel Stenberg 2001-11-28 23:14:20 +00:00
Родитель a32cd520bd
Коммит 820de919b6
1 изменённых файлов: 11 добавлений и 13 удалений

Просмотреть файл

@ -155,19 +155,17 @@ AC_DEFUN([TYPE_IN_ADDR_T],
# Systems have either "struct sockaddr *" or
# "void *" as the second argument to getpeername
curl_cv_in_addr_t_equiv=
for arg2 in "struct sockaddr" void; do
for t in int size_t unsigned long "unsigned long"; do
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
],[
$arg data = inet_addr ("1.2.3.4");
],[
curl_cv_in_addr_t_equiv="$t"
break
])
done
for t in int size_t unsigned long "unsigned long"; do
AC_TRY_COMPILE([
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
],[
$t data = inet_addr ("1.2.3.4");
],[
curl_cv_in_addr_t_equiv="$t"
break
])
done
if test "x$curl_cv_in_addr_t_equiv" = x; then