Commit 08493ce0 authored by Pekka Pessi's avatar Pekka Pessi

Not using IN6 if it is not found by configure.

darcs-hash:20051101112632-65a35-e08ed046d109e3eef3214df9010bf2d831304881.gz
parent 972ed3cc
......@@ -141,6 +141,7 @@ int test_sockaddr(void)
TEST_1(su_match_sockaddr(a, b));
a->su_sin.sin_addr.s_addr = 0;
TEST_1(su_match_sockaddr(a, b));
#if HAVE_SIN6
a->su_family = AF_INET6;
TEST_1(!su_match_sockaddr(a, b));
b->su_family = AF_INET6;
......@@ -153,7 +154,7 @@ int test_sockaddr(void)
a->su_family = 0;
TEST_1(su_match_sockaddr(a, b));
TEST_1(!su_match_sockaddr(b, a));
#endif
END();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment