]> granicus.if.org Git - curl/commitdiff
change the order of the in_addr_t tests, so that 'unsigned long' is tested
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 May 2003 21:13:36 +0000 (21:13 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 May 2003 21:13:36 +0000 (21:13 +0000)
for first, as it seems to be what many systems use

acinclude.m4

index 83d86bf467384b050d7d2097609fc9ad40978cdb..78d9052f9bcc6455802f46fcf061224d53cc58c8 100644 (file)
@@ -152,10 +152,8 @@ AC_DEFUN([TYPE_IN_ADDR_T],
       AC_MSG_CHECKING([for in_addr_t equivalent])
       AC_CACHE_VAL([curl_cv_in_addr_t_equiv],
       [
-         # Systems have either "struct sockaddr *" or
-         # "void *" as the second argument to getpeername
          curl_cv_in_addr_t_equiv=
-         for t in int size_t unsigned long "unsigned long"; do
+         for t in "unsigned long" int size_t unsigned long; do
             AC_TRY_COMPILE([
                #include <sys/types.h>
                #include <sys/socket.h>