From ccdfb051fa386bb44024d53540b0a29ab7bd725e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 12 Aug 2011 11:11:45 +0000 Subject: [PATCH] LRN: disable bind test on W32 --- src/util/client.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/util/client.c b/src/util/client.c index a05c5bf75..db53ab6f2 100644 --- a/src/util/client.c +++ b/src/util/client.c @@ -815,7 +815,11 @@ GNUNET_CLIENT_service_test (const char *service, return; } - if (0 == strcmp ("localhost", hostname)) + if (0 == strcmp ("localhost", hostname) +#if WINDOWS + && 0 +#endif + ) { /* can test using 'bind' */ struct sockaddr_in s_in; @@ -847,7 +851,11 @@ GNUNET_CLIENT_service_test (const char *service, } } - if (0 == strcmp ("ip6-localhost", hostname)) + if (0 == strcmp ("ip6-localhost", hostname) +#if WINDOWS + && 0 +#endif + ) { /* can test using 'bind' */ struct sockaddr_in6 s_in6; @@ -879,8 +887,12 @@ GNUNET_CLIENT_service_test (const char *service, } } - if ( (0 == strcmp ("localhost", hostname)) || - (0 == strcmp ("ip6-localhost", hostname)) ) + if (( (0 == strcmp ("localhost", hostname)) || + (0 == strcmp ("ip6-localhost", hostname))) +#if WINDOWS + && 0 +#endif + ) { /* all binds succeeded => claim service not running right now */ GNUNET_free_non_null (hostname); -- 2.25.1