vuze: drop (#358309)
[NixPkgs.git] / pkgs / tools / security / tor / torsocks-gethostbyaddr-darwin.patch
blobd7d834271a94cd4a94f9f378ad8f58691d1af888
1 diff --git a/tests/test_dns.c b/tests/test_dns.c
2 index 7e07663..acf095c 100644
3 --- a/tests/test_dns.c
4 +++ b/tests/test_dns.c
5 @@ -76,6 +76,8 @@ static void test_gethostbyname(const struct test_host *host)
6 return;
9 +#ifdef __linux__
11 static void test_gethostbyaddr_r_failed(void)
13 int result;
14 @@ -129,6 +131,8 @@ static void test_gethostbyaddr_r(const struct test_host *host)
15 ok(1, "Resolved address");
18 +#endif
20 static void test_gethostbyaddr(const struct test_host *host)
22 struct hostent *he;
23 @@ -199,8 +203,10 @@ int main(int argc, char **argv)
24 test_getaddrinfo(&tor_check);
25 test_gethostbyname(&tor_dir_auth1);
26 test_gethostbyaddr(&tor_dir_auth2);
27 +#ifdef __linux__
28 test_gethostbyaddr_r(&tor_dir_auth2);
29 test_gethostbyaddr_r_failed();
30 +#endif
31 test_getaddrinfo(&tor_localhost);
33 end: