mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
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:
parent
a32cd520bd
commit
820de919b6
@ -155,20 +155,18 @@ AC_DEFUN([TYPE_IN_ADDR_T],
|
|||||||
# Systems have either "struct sockaddr *" or
|
# Systems have either "struct sockaddr *" or
|
||||||
# "void *" as the second argument to getpeername
|
# "void *" as the second argument to getpeername
|
||||||
curl_cv_in_addr_t_equiv=
|
curl_cv_in_addr_t_equiv=
|
||||||
for arg2 in "struct sockaddr" void; do
|
|
||||||
for t in int size_t unsigned long "unsigned long"; do
|
for t in int size_t unsigned long "unsigned long"; do
|
||||||
AC_TRY_COMPILE([
|
AC_TRY_COMPILE([
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
],[
|
],[
|
||||||
$arg data = inet_addr ("1.2.3.4");
|
$t data = inet_addr ("1.2.3.4");
|
||||||
],[
|
],[
|
||||||
curl_cv_in_addr_t_equiv="$t"
|
curl_cv_in_addr_t_equiv="$t"
|
||||||
break
|
break
|
||||||
])
|
])
|
||||||
done
|
done
|
||||||
done
|
|
||||||
|
|
||||||
if test "x$curl_cv_in_addr_t_equiv" = x; then
|
if test "x$curl_cv_in_addr_t_equiv" = x; then
|
||||||
AC_MSG_ERROR([Cannot find a type to use in place of in_addr_t])
|
AC_MSG_ERROR([Cannot find a type to use in place of in_addr_t])
|
||||||
|
Loading…
Reference in New Issue
Block a user