Skip to content

Commit

Permalink
configure.ac: fix logged output of inet_pton() test
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Oct 16, 2023
1 parent a864aa7 commit 35c4001
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,8 @@ AC_CACHE_CHECK([for inet_pton() with IPv4 and IPv6 support],
[[/* int inet_pton(int af, const char *src, char *dst); */
struct in_addr ipv4;
struct in6_addr ipv6;
printf("%i", inet_pton(AF_INET, "1.2.3.4", &ipv4));
printf("%i", inet_pton(AF_INET6, "::1", &ipv6))
printf("%i ", inet_pton(AF_INET, "1.2.3.4", &ipv4));
printf("%i ", inet_pton(AF_INET6, "::1", &ipv6))
/* autoconf adds ";return 0;" */
]])],
[ac_cv_func_inet_pton=yes], [ac_cv_func_inet_pton=no]
Expand Down

0 comments on commit 35c4001

Please sign in to comment.