From 65aeda1f59cf49a517557da62fcacb58d957eae9 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Wed, 27 Mar 2019 20:56:59 -0600 Subject: [PATCH] Use AF_INET6 instead of PF_INET6 in test --- tests/netdb/getaddrinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/netdb/getaddrinfo.c b/tests/netdb/getaddrinfo.c index daecf839..9c4968d5 100644 --- a/tests/netdb/getaddrinfo.c +++ b/tests/netdb/getaddrinfo.c @@ -40,7 +40,7 @@ int main(void) { printf( "IPv%d address: %s (%s)\n", - res->ai_family == PF_INET6 ? 6 : 4, + res->ai_family == AF_INET6 ? 6 : 4, addrstr, res->ai_canonname ); -- GitLab