summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-28 23:14:20 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-28 23:14:20 +0000
commit820de919b68408539c40790d1d92a702db8d2055 (patch)
tree0b1d9d67b96b834b1235c28364d36376dfeb43d5 /acinclude.m4
parenta32cd520bd6dd8a72b4e796edb943eb92bc16b3d (diff)
downloadcurl-820de919b68408539c40790d1d92a702db8d2055.tar.gz
now sets a type for in_addr_t even if it isn't found in the #include files
like on my linux box
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m424
1 files changed, 11 insertions, 13 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index c7f92f7a2..2cf134418 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -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