]> granicus.if.org Git - curl/commitdiff
now sets a type for in_addr_t even if it isn't found in the #include files
authorDaniel Stenberg <daniel@haxx.se>
Wed, 28 Nov 2001 23:14:20 +0000 (23:14 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Nov 2001 23:14:20 +0000 (23:14 +0000)
like on my linux box

acinclude.m4

index c7f92f7a2d387ef42d0315f493a452e6c42f2e9a..2cf1344180cff3efadd5e79fe36083901bd8b760 100644 (file)
@@ -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